public function filterByLevel($level)
    {
        return $this->filter(function(LogEntry $entry) use ($level) {
            return $entry->isSameLevel($level);
        });
    }
public function filterByLevel($level)
    {
        return $this->filter(function(LogEntry $entry) use ($level) {
            return $entry->isSameLevel($level);
        });
    }
public function filterByLevel ( $ level ) { return $ this -> filter ( function ( LogEntry $ entry ) use ( $ level ) { return $ entry -> isSameLevel ( $ level ) ; } ) ; }
Get filtered log entries by level.

@param  string  $level

@return self
Get filtered log entries by level .