Skip to main content

Level

A Record's level indicates the importance or severity of the event it describes.

Types

Level

type Level = number

Properties

NotSet

This item is read only and cannot be modified. Read Only
since 0.1.0
</>
Level.NotSet: Level
  1. Default for new Logger and Handler. For loggers, this value indicates that the effective level should be that of the parent logger's effective level.

Debug

This item is read only and cannot be modified. Read Only
since 0.1.0
</>
Level.Debug: Level
  1. Detail used when diagnosing problems.

Info

This item is read only and cannot be modified. Read Only
since 0.1.0
</>
Level.Info: Level
  1. Confirmation that things are working as expected

Warning

This item is read only and cannot be modified. Read Only
since 0.1.0
</>
Level.Warning: Level
  1. Indication that something unexpected happened, or that something may go wrong in the near future.

Error

This item is read only and cannot be modified. Read Only
since 0.1.0
</>
Level.Error: Level
  1. Indication that something couldn't be done due to a more serious problem.

Critical

This item is read only and cannot be modified. Read Only
since 0.1.0
</>
Level.Critical: Level
  1. Indication that the program itself may not be able to continue due to a serious error.
Show raw api
{
    "functions": [],
    "properties": [
        {
            "name": "NotSet",
            "desc": "0. Default for new [Logger] and [Handler].\nFor loggers, this value indicates that the effective level should be that of the parent logger's effective level.",
            "lua_type": "Level",
            "since": "0.1.0",
            "readonly": true,
            "source": {
                "line": 20,
                "path": "Logging/Level.lua"
            }
        },
        {
            "name": "Debug",
            "desc": "10. Detail used when diagnosing problems.",
            "lua_type": "Level",
            "since": "0.1.0",
            "readonly": true,
            "source": {
                "line": 29,
                "path": "Logging/Level.lua"
            }
        },
        {
            "name": "Info",
            "desc": "20. Confirmation that things are working as expected",
            "lua_type": "Level",
            "since": "0.1.0",
            "readonly": true,
            "source": {
                "line": 38,
                "path": "Logging/Level.lua"
            }
        },
        {
            "name": "Warning",
            "desc": "30. Indication that something unexpected happened, or that something may go wrong in the near future.",
            "lua_type": "Level",
            "since": "0.1.0",
            "readonly": true,
            "source": {
                "line": 47,
                "path": "Logging/Level.lua"
            }
        },
        {
            "name": "Error",
            "desc": "40. Indication that something couldn't be done due to a more serious problem.",
            "lua_type": "Level",
            "since": "0.1.0",
            "readonly": true,
            "source": {
                "line": 56,
                "path": "Logging/Level.lua"
            }
        },
        {
            "name": "Critical",
            "desc": "50. Indication that the program itself may not be able to continue due to a serious error.",
            "lua_type": "Level",
            "since": "0.1.0",
            "readonly": true,
            "source": {
                "line": 65,
                "path": "Logging/Level.lua"
            }
        }
    ],
    "types": [
        {
            "name": "Level",
            "desc": "",
            "lua_type": "number",
            "source": {
                "line": 11,
                "path": "Logging/Level.lua"
            }
        }
    ],
    "name": "Level",
    "desc": "A [Record]'s level indicates the importance or severity of the event it describes.",
    "source": {
        "line": 5,
        "path": "Logging/Level.lua"
    }
}