Home › Overview › MainModule › Util
Logger
Constructors: Logger.new
Types
LogType type
luau
type LogType = "INFO"
| "WARN"
| "ERROR"
| "DEBUG"
| "CHAT"
| "COMMAND"
| "PURCHASE"
| "DAMAGE"
| "DEATH"
| "KILL"
| "JOIN"
| "LEAVE"
| stringLog type
luau
type Log = { string | LogType | number? | boolean? }Logger type
luau
type Logger = typeof(setmetatable({} :: { logs: { Log }, debug: boolean? }, Logger))Properties
limit
luau
Logger.limit: numberFunctions
new
luau
Logger.new(debugEnabled: boolean?): LoggersortTime
luau
Logger.sortTime(a, b)Methods
encode
luau
Logger:encode(level: LogType): stringdecode
luau
Logger:decode(level: string): LogType