src/Processor/LoggerProcessor.php
private function getAssociatedLogLevel($errno)
    {
        $associations = [
            E_WARNING => LogLevel::WARNING,
            E_NOTICE => LogLevel::NOTICE,
            E_USER_ERROR => LogLevel::ERROR,
            E_USER_WARNING => LogLevel::WARNING,
            E_USER_NOTICE => LogLevel::NOTICE,
            E_STRICT => LogLevel::NOTICE,
            E_RECOVERABLE_ERROR => LogLevel::ERROR,
            E_DEPRECATED => LogLevel::NOTICE,
            E_USER_DEPRECATED => LogLevel::NOTICE,
        ];

        if (isset($associations[$errno])) {
            return $associations[$errno];
        }

        return LogLevel::CRITICAL;
    }
private function getAssociatedLogLevel($errno)
    {
        $associations = [
            E_WARNING => LogLevel::WARNING,
            E_NOTICE => LogLevel::NOTICE,
            E_USER_ERROR => LogLevel::ERROR,
            E_USER_WARNING => LogLevel::WARNING,
            E_USER_NOTICE => LogLevel::NOTICE,
            E_STRICT => LogLevel::NOTICE,
            E_RECOVERABLE_ERROR => LogLevel::ERROR,
            E_DEPRECATED => LogLevel::NOTICE,
            E_USER_DEPRECATED => LogLevel::NOTICE,
        ];

        if (isset($associations[$errno])) {
            return $associations[$errno];
        }

        return LogLevel::CRITICAL;
    }
private function getAssociatedLogLevel ( $ errno ) { $ associations = [ E_WARNING => LogLevel :: WARNING , E_NOTICE => LogLevel :: NOTICE , E_USER_ERROR => LogLevel :: ERROR , E_USER_WARNING => LogLevel :: WARNING , E_USER_NOTICE => LogLevel :: NOTICE , E_STRICT => LogLevel :: NOTICE , E_RECOVERABLE_ERROR => LogLevel :: ERROR , E_DEPRECATED => LogLevel :: NOTICE , E_USER_DEPRECATED => LogLevel :: NOTICE , ] ; if ( isset ( $ associations [ $ errno ] ) ) { return $ associations [ $ errno ] ; } return LogLevel :: CRITICAL ; }
Getting the log level constant associated with error code.

@param int $errno level of the error raised

@return string
Getting the log level constant associated with error code .