src/Service/SyslogService.php
private function convertLogLevelFromPSRToSyslog($severity)
    {
        switch ($severity) {
            case LogLevel::DEBUG:
                return LOG_DEBUG;
            case LogLevel::INFO:
                return LOG_INFO;
            case LogLevel::NOTICE:
                return LOG_NOTICE;
            case LogLevel::WARNING:
                return LOG_WARNING;
            case LogLevel::ERROR:
                return LOG_ERR;
            case LogLevel::CRITICAL:
                return LOG_CRIT;
            case LogLevel::ALERT:
                return LOG_ALERT;
            case LogLevel::EMERGENCY:
                return LOG_EMERG;
            default:
                return LOG_ERR;
        }
    }
private function convertLogLevelFromPSRToSyslog($severity)
    {
        switch ($severity) {
            case LogLevel::DEBUG:
                return LOG_DEBUG;
            case LogLevel::INFO:
                return LOG_INFO;
            case LogLevel::NOTICE:
                return LOG_NOTICE;
            case LogLevel::WARNING:
                return LOG_WARNING;
            case LogLevel::ERROR:
                return LOG_ERR;
            case LogLevel::CRITICAL:
                return LOG_CRIT;
            case LogLevel::ALERT:
                return LOG_ALERT;
            case LogLevel::EMERGENCY:
                return LOG_EMERG;
            default:
                return LOG_ERR;
        }
    }
private function convertLogLevelFromPSRToSyslog ( $ severity ) { switch ( $ severity ) { case LogLevel :: DEBUG : return LOG_DEBUG ; case LogLevel :: INFO : return LOG_INFO ; case LogLevel :: NOTICE : return LOG_NOTICE ; case LogLevel :: WARNING : return LOG_WARNING ; case LogLevel :: ERROR : return LOG_ERR ; case LogLevel :: CRITICAL : return LOG_CRIT ; case LogLevel :: ALERT : return LOG_ALERT ; case LogLevel :: EMERGENCY : return LOG_EMERG ; default : return LOG_ERR ; } }
Translate a PRS-3 log level to Syslog log level

@param string $severity

@return int
Translate a PRS - 3 log level to Syslog log level