private function getPhalconLoggerLevel($level)
    {
        $levelMap = [
            LogLevel::INFO => PhalconLogLevel::INFO,
            LogLevel::DEBUG => PhalconLogLevel::DEBUG,
            LogLevel::ALERT => PhalconLogLevel::ALERT,
            LogLevel::CRITICAL => PhalconLogLevel::CRITICAL,
            LogLevel::EMERGENCY => PhalconLogLevel::EMERGENCY,
            LogLevel::ERROR => PhalconLogLevel::ERROR,
            LogLevel::NOTICE => PhalconLogLevel::NOTICE,
            LogLevel::WARNING => PhalconLogLevel::WARNING
        ];

        return ArrayUtils::getValue($levelMap, $level, PhalconLogLevel::INFO);
    }
private function getPhalconLoggerLevel($level)
    {
        $levelMap = [
            LogLevel::INFO => PhalconLogLevel::INFO,
            LogLevel::DEBUG => PhalconLogLevel::DEBUG,
            LogLevel::ALERT => PhalconLogLevel::ALERT,
            LogLevel::CRITICAL => PhalconLogLevel::CRITICAL,
            LogLevel::EMERGENCY => PhalconLogLevel::EMERGENCY,
            LogLevel::ERROR => PhalconLogLevel::ERROR,
            LogLevel::NOTICE => PhalconLogLevel::NOTICE,
            LogLevel::WARNING => PhalconLogLevel::WARNING
        ];

        return ArrayUtils::getValue($levelMap, $level, PhalconLogLevel::INFO);
    }
private function getPhalconLoggerLevel ( $ level ) { $ levelMap = [ LogLevel :: INFO => PhalconLogLevel :: INFO , LogLevel :: DEBUG => PhalconLogLevel :: DEBUG , LogLevel :: ALERT => PhalconLogLevel :: ALERT , LogLevel :: CRITICAL => PhalconLogLevel :: CRITICAL , LogLevel :: EMERGENCY => PhalconLogLevel :: EMERGENCY , LogLevel :: ERROR => PhalconLogLevel :: ERROR , LogLevel :: NOTICE => PhalconLogLevel :: NOTICE , LogLevel :: WARNING => PhalconLogLevel :: WARNING ] ; return ArrayUtils :: getValue ( $ levelMap , $ level , PhalconLogLevel :: INFO ) ; }
Get Phalcon Log Level from PSR Log level
@author Adeyemi Olaoye <yemi@cottacush.com>
@param $level
@return null
Get Phalcon Log Level from PSR Log level