private function loggerLevel($level)
    {
        switch ($level) {
            case 'trace':
            case 'debug':
                return Logger::DEBUG;
                break;

            case 'info':
                return Logger::INFO;
                break;

            case 'notice':
                return Logger::NOTICE;
                break;

            case 'warn':
            case 'warning':
                return Logger::WARNING;
                break;

            case 'error':
                return Logger::ERROR;
                break;

            case 'crit':
            case 'critical':
                return Logger::CRITICAL;
                break;

            case 'alert':
                return Logger::ALERT;
                break;

            case 'emergency':
                return Logger::EMERGENCY;
                break;

            default:
                throw new \Exception('Unknown Log Level', 1);
                break;
        }
    }
private function loggerLevel($level)
    {
        switch ($level) {
            case 'trace':
            case 'debug':
                return Logger::DEBUG;
                break;

            case 'info':
                return Logger::INFO;
                break;

            case 'notice':
                return Logger::NOTICE;
                break;

            case 'warn':
            case 'warning':
                return Logger::WARNING;
                break;

            case 'error':
                return Logger::ERROR;
                break;

            case 'crit':
            case 'critical':
                return Logger::CRITICAL;
                break;

            case 'alert':
                return Logger::ALERT;
                break;

            case 'emergency':
                return Logger::EMERGENCY;
                break;

            default:
                throw new \Exception('Unknown Log Level', 1);
                break;
        }
    }
private function loggerLevel ( $ level ) { switch ( $ level ) { case 'trace' : case 'debug' : return Logger :: DEBUG ; break ; case 'info' : return Logger :: INFO ; break ; case 'notice' : return Logger :: NOTICE ; break ; case 'warn' : case 'warning' : return Logger :: WARNING ; break ; case 'error' : return Logger :: ERROR ; break ; case 'crit' : case 'critical' : return Logger :: CRITICAL ; break ; case 'alert' : return Logger :: ALERT ; break ; case 'emergency' : return Logger :: EMERGENCY ; break ; default : throw new \ Exception ( 'Unknown Log Level' , 1 ) ; break ; } }
Get the Monolog constants for log levels.

@param string $level Log level name (debug, info, etc)

@return int

@throws \Exception
Get the Monolog constants for log levels .