Skip to main content

Logger

Types

LogType

type LogType = "DEBUG" | "INFO" | "WARN" | "ERROR" | "CHAT" | "COMMAND" | "JOIN" | "LEAVE" | "KILL" | "DEATH" | "DAMAGE" | "PURCHASE" | string

Log

type Log = {
textstring,
levelLogType,
timenumber,
usernumber?
}

Logger

type Logger = typeof(setmetatable({}:{
logs{Log},
debugboolean?
},Logger))
Show raw api
{
    "functions": [],
    "properties": [],
    "types": [
        {
            "name": "LogType",
            "desc": "",
            "lua_type": "\"DEBUG\" | \"INFO\" | \"WARN\" | \"ERROR\" | \"CHAT\" | \"COMMAND\" | \"JOIN\" | \"LEAVE\" | \"KILL\" | \"DEATH\" | \"DAMAGE\" | \"PURCHASE\" | string",
            "source": {
                "line": 3,
                "path": "MainModule/Util/Logger.luau"
            }
        },
        {
            "name": "Log",
            "desc": "",
            "lua_type": "{ text: string, level: LogType, time: number, user: number? }",
            "source": {
                "line": 20,
                "path": "MainModule/Util/Logger.luau"
            }
        },
        {
            "name": "Logger",
            "desc": "",
            "lua_type": "typeof(setmetatable({} :: { logs: { Log }, debug: boolean? }, Logger))",
            "source": {
                "line": 34,
                "path": "MainModule/Util/Logger.luau"
            }
        }
    ],
    "name": "Logger",
    "desc": "",
    "source": {
        "line": 29,
        "path": "MainModule/Util/Logger.luau"
    }
}