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;
        }
    }