public static function getLevelName($level)
    {
        static $levels = [
            self::LEVEL_ERROR => 'error',
            self::LEVEL_WARNING => 'warning',
            self::LEVEL_INFO => 'info',
            self::LEVEL_TRACE => 'trace',
            self::LEVEL_PROFILE_BEGIN => 'profile begin',
            self::LEVEL_PROFILE_END => 'profile end',
        ];

        return isset($levels[$level]) ? $levels[$level] : 'unknown';
    }
public static function getLevelName($level)
    {
        static $levels = [
            self::LEVEL_ERROR => 'error',
            self::LEVEL_WARNING => 'warning',
            self::LEVEL_INFO => 'info',
            self::LEVEL_TRACE => 'trace',
            self::LEVEL_PROFILE_BEGIN => 'profile begin',
            self::LEVEL_PROFILE_END => 'profile end',
        ];

        return isset($levels[$level]) ? $levels[$level] : 'unknown';
    }
public static function getLevelName ( $ level ) { static $ levels = [ self :: LEVEL_ERROR => 'error' , self :: LEVEL_WARNING => 'warning' , self :: LEVEL_INFO => 'info' , self :: LEVEL_TRACE => 'trace' , self :: LEVEL_PROFILE_BEGIN => 'profile begin' , self :: LEVEL_PROFILE_END => 'profile end' , ] ; return isset ( $ levels [ $ level ] ) ? $ levels [ $ level ] : 'unknown' ; }
Returns the text display of the specified level.
@param integer $level the message level, e.g. [[LEVEL_ERROR]], [[LEVEL_WARNING]].
@return string the text display of the level
Returns the text display of the specified level .