src/Validator.php
public static function getLogStringByCode($code)
    {
        $code = is_numeric($code) && !is_float($code)
            ? abs($code)
            : $code;
        if (!is_int($code)) {
            return null;
        }

        switch (self::getConvertAliasLogLevel($code)) {
            case Logger::NOTICE:
                return 'notice';
            case Logger::ERROR:
                return 'error';
            case Logger::WARNING:
                return 'warning';
            case Logger::INFO:
                return 'info';
            case Logger::DEBUG:
                return 'debug';
            case Logger::EMERGENCY:
                return 'emergency';
            case Logger::CRITICAL:
                return 'critical';
            case Logger::ALERT:
                return 'alert';
        }

        return null;
    }
public static function getLogStringByCode($code)
    {
        $code = is_numeric($code) && !is_float($code)
            ? abs($code)
            : $code;
        if (!is_int($code)) {
            return null;
        }

        switch (self::getConvertAliasLogLevel($code)) {
            case Logger::NOTICE:
                return 'notice';
            case Logger::ERROR:
                return 'error';
            case Logger::WARNING:
                return 'warning';
            case Logger::INFO:
                return 'info';
            case Logger::DEBUG:
                return 'debug';
            case Logger::EMERGENCY:
                return 'emergency';
            case Logger::CRITICAL:
                return 'critical';
            case Logger::ALERT:
                return 'alert';
        }

        return null;
    }
public static function getLogStringByCode ( $ code ) { $ code = is_numeric ( $ code ) && ! is_float ( $ code ) ? abs ( $ code ) : $ code ; if ( ! is_int ( $ code ) ) { return null ; } switch ( self :: getConvertAliasLogLevel ( $ code ) ) { case Logger :: NOTICE : return 'notice' ; case Logger :: ERROR : return 'error' ; case Logger :: WARNING : return 'warning' ; case Logger :: INFO : return 'info' ; case Logger :: DEBUG : return 'debug' ; case Logger :: EMERGENCY : return 'emergency' ; case Logger :: CRITICAL : return 'critical' ; case Logger :: ALERT : return 'alert' ; } return null ; }
Get Default Log Name By Code

@param int $code
@return string|null string as lowercase and returning null if not found
Get Default Log Name By Code