private function isValidLogLevel($level)
    {
        return in_array($level, array(
                LogLevel::EMERGENCY,
                LogLevel::ALERT,
                LogLevel::CRITICAL,
                LogLevel::ERROR,
                LogLevel::WARNING,
                LogLevel::NOTICE,
                LogLevel::INFO,
                LogLevel::DEBUG,
            )
        );
    }
private function isValidLogLevel($level)
    {
        return in_array($level, array(
                LogLevel::EMERGENCY,
                LogLevel::ALERT,
                LogLevel::CRITICAL,
                LogLevel::ERROR,
                LogLevel::WARNING,
                LogLevel::NOTICE,
                LogLevel::INFO,
                LogLevel::DEBUG,
            )
        );
    }
private function isValidLogLevel ( $ level ) { return in_array ( $ level , array ( LogLevel :: EMERGENCY , LogLevel :: ALERT , LogLevel :: CRITICAL , LogLevel :: ERROR , LogLevel :: WARNING , LogLevel :: NOTICE , LogLevel :: INFO , LogLevel :: DEBUG , ) ) ; }
Returns true if the level is a valid log level.

@param string $level

@return bool
Returns true if the level is a valid log level .