Skip to main content

Log

The logging interface

Log.info(":)")

Functions

debug

Log.debug(
valstring--

message

) → ()

Debug logging, only active in debug builds

misc

Log.misc(
valstring--

message

) → ()

Miscellaneous logging

info

Log.info(
valstring--

message

) → ()

Informational logging

warn

Log.warn(
valstring--

message

) → ()

Warning logging

fatal

Log.fatal(
valstring--

message

) → ()

Fatal logging, exits game

Show raw api
{
    "functions": [
        {
            "name": "debug",
            "desc": "Debug logging, only active in debug builds",
            "params": [
                {
                    "name": "val",
                    "desc": "message",
                    "lua_type": "string"
                }
            ],
            "returns": [],
            "function_type": "static",
            "source": {
                "line": 16,
                "path": "../../res/data/script/lib/system/log.lua"
            }
        },
        {
            "name": "misc",
            "desc": "Miscellaneous logging",
            "params": [
                {
                    "name": "val",
                    "desc": "message",
                    "lua_type": "string"
                }
            ],
            "returns": [],
            "function_type": "static",
            "source": {
                "line": 24,
                "path": "../../res/data/script/lib/system/log.lua"
            }
        },
        {
            "name": "info",
            "desc": "Informational logging",
            "params": [
                {
                    "name": "val",
                    "desc": "message",
                    "lua_type": "string"
                }
            ],
            "returns": [],
            "function_type": "static",
            "source": {
                "line": 32,
                "path": "../../res/data/script/lib/system/log.lua"
            }
        },
        {
            "name": "warn",
            "desc": "Warning logging",
            "params": [
                {
                    "name": "val",
                    "desc": "message",
                    "lua_type": "string"
                }
            ],
            "returns": [],
            "function_type": "static",
            "source": {
                "line": 40,
                "path": "../../res/data/script/lib/system/log.lua"
            }
        },
        {
            "name": "fatal",
            "desc": "Fatal logging, exits game",
            "params": [
                {
                    "name": "val",
                    "desc": "message",
                    "lua_type": "string"
                }
            ],
            "returns": [],
            "function_type": "static",
            "source": {
                "line": 48,
                "path": "../../res/data/script/lib/system/log.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "Log",
    "desc": "The logging interface\n\n```lua\nLog.info(\":)\")\n```",
    "source": {
        "line": 9,
        "path": "../../res/data/script/lib/system/log.lua"
    }
}