src/Jackiedo/LogReader/LogReader.php
public function level($level)
    {
        if (empty($level)) {
            $level = [];
        } elseif (is_string($level)) {
            $level = explode(',', str_replace(' ', '', $level));
        } else {
            $level = is_array($level) ? $level : func_get_args();
        }

        $this->setLevel($level);

        return $this;
    }
public function level($level)
    {
        if (empty($level)) {
            $level = [];
        } elseif (is_string($level)) {
            $level = explode(',', str_replace(' ', '', $level));
        } else {
            $level = is_array($level) ? $level : func_get_args();
        }

        $this->setLevel($level);

        return $this;
    }
public function level ( $ level ) { if ( empty ( $ level ) ) { $ level = [ ] ; } elseif ( is_string ( $ level ) ) { $ level = explode ( ',' , str_replace ( ' ' , '' , $ level ) ) ; } else { $ level = is_array ( $ level ) ? $ level : func_get_args ( ) ; } $ this -> setLevel ( $ level ) ; return $ this ; }
Sets the level to sort the log entries by.

@param  mixed  $level

@return \Jackiedo\LogReader\LogReader
Sets the level to sort the log entries by .