private function shouldLog($event)
    {
        $level = isset($this->configuration[$event]) ? $this->configuration[$event] : '';
        $level = strtolower($level);

        if (!$level) {
            return '';
        }

        if (!isset(self::$levels[$level])) {
            return '';
        }

        return $level;
    }
private function shouldLog($event)
    {
        $level = isset($this->configuration[$event]) ? $this->configuration[$event] : '';
        $level = strtolower($level);

        if (!$level) {
            return '';
        }

        if (!isset(self::$levels[$level])) {
            return '';
        }

        return $level;
    }
private function shouldLog ( $ event ) { $ level = isset ( $ this -> configuration [ $ event ] ) ? $ this -> configuration [ $ event ] : '' ; $ level = strtolower ( $ level ) ; if ( ! $ level ) { return '' ; } if ( ! isset ( self :: $ levels [ $ level ] ) ) { return '' ; } return $ level ; }
Should the event be logged?

If yes - return the log level to log the event as.
If no  - return a falsey value

@param string $event

@return string
Should the event be logged?