- class Logger¶
-
useColor:
boolean
¶ Whether to use terminal colors or not.
-
outFile:
string
¶ A file to log to.
-
onlyFile:
boolean
¶ Toggle this on to only log to file.
- level: "debug" | "error" | "info" | "trace" | "warn"¶
The log level to log up to.
-
enabled:
boolean
¶ Toggle this off to disable all logging.
-
resetFile:
boolean
¶ Toggle this on to overwrite the log file every time.
-
staticmethod setOptions(options: {enabled:
boolean
, level: "debug" | "error" | "info" | "trace" | "warn", outFile:string
, onlyFile:boolean
, resetFile:boolean
, useColor:boolean
})¶ Set options at once with a table.
- staticmethod init()¶
-
staticmethod trace(...:
unknown
)¶ Log a message at the TRACE level.
-
staticmethod debug(...:
unknown
)¶ Log a message at the DEBUG level.
-
staticmethod info(...:
unknown
)¶ Log a message at the INFO level.
-
staticmethod warn(...:
unknown
)¶ Log a message at the WARN level.
-
staticmethod error(...:
unknown
)¶ Log a message at the ERROR level.
-
useColor: