src/Transformer/QLLogSeverityTransformer.php
private function convertLogLevelFromPSRToQL($severity)
    {
        // Equal mappings
        if ($severity === LogLevel::DEBUG) {
            return 'debug';

        } elseif ($severity === LogLevel::INFO) {
            return 'info';

        } elseif ($severity === LogLevel::WARNING) {
            return 'warn';

        } elseif ($severity === LogLevel::ERROR) {
            return 'error';
        }

        // Duplicate mappings
        if ($severity === LogLevel::NOTICE) {
            return 'info';

        } elseif ($severity === LogLevel::CRITICAL) {
            return 'fatal';

        } elseif ($severity === LogLevel::ALERT) {
            return 'fatal';

        } elseif ($severity === LogLevel::EMERGENCY) {
            return 'fatal';
        }

        // Default to error
        return 'error';
    }
private function convertLogLevelFromPSRToQL($severity)
    {
        // Equal mappings
        if ($severity === LogLevel::DEBUG) {
            return 'debug';

        } elseif ($severity === LogLevel::INFO) {
            return 'info';

        } elseif ($severity === LogLevel::WARNING) {
            return 'warn';

        } elseif ($severity === LogLevel::ERROR) {
            return 'error';
        }

        // Duplicate mappings
        if ($severity === LogLevel::NOTICE) {
            return 'info';

        } elseif ($severity === LogLevel::CRITICAL) {
            return 'fatal';

        } elseif ($severity === LogLevel::ALERT) {
            return 'fatal';

        } elseif ($severity === LogLevel::EMERGENCY) {
            return 'fatal';
        }

        // Default to error
        return 'error';
    }
private function convertLogLevelFromPSRToQL ( $ severity ) { // Equal mappings if ( $ severity === LogLevel :: DEBUG ) { return 'debug' ; } elseif ( $ severity === LogLevel :: INFO ) { return 'info' ; } elseif ( $ severity === LogLevel :: WARNING ) { return 'warn' ; } elseif ( $ severity === LogLevel :: ERROR ) { return 'error' ; } // Duplicate mappings if ( $ severity === LogLevel :: NOTICE ) { return 'info' ; } elseif ( $ severity === LogLevel :: CRITICAL ) { return 'fatal' ; } elseif ( $ severity === LogLevel :: ALERT ) { return 'fatal' ; } elseif ( $ severity === LogLevel :: EMERGENCY ) { return 'fatal' ; } // Default to error return 'error' ; }
Translate a PRS-3 log level to QL log level

Not used:
- 'audit'

@param string $severity

@return string
Translate a PRS - 3 log level to QL log level