protected function read($filename, $serialized)
    {
        $log = $this->getPath($filename, $serialized);
        is_readable_or_fail($log);
        $log = file_get_contents($log);

        return $serialized ? @unserialize($log) : trim($log);
    }
protected function read($filename, $serialized)
    {
        $log = $this->getPath($filename, $serialized);
        is_readable_or_fail($log);
        $log = file_get_contents($log);

        return $serialized ? @unserialize($log) : trim($log);
    }
protected function read ( $ filename , $ serialized ) { $ log = $ this -> getPath ( $ filename , $ serialized ) ; is_readable_or_fail ( $ log ) ; $ log = file_get_contents ( $ log ) ; return $ serialized ? @ unserialize ( $ log ) : trim ( $ log ) ; }
Internal method to read a log content
@param string $filename Filename
@param bool $serialized `true` for a serialized log
@return string|array Log as array for serialized logs, otherwise a string
@uses getPath()
Internal method to read a log content