protected function shouldLog($level)
    {
        if ($this->levels === ['*'] || $this->levels === ['all']) {
            return true;
        }

        return in_array($level, $this->levels);
    }
protected function shouldLog($level)
    {
        if ($this->levels === ['*'] || $this->levels === ['all']) {
            return true;
        }

        return in_array($level, $this->levels);
    }
protected function shouldLog ( $ level ) { if ( $ this -> levels === [ '*' ] || $ this -> levels === [ 'all' ] ) { return true ; } return in_array ( $ level , $ this -> levels ) ; }
Should the message be logged?

@param string $level

@return bool
Should the message be logged?