Skip to content

Overview / log

log

const log: Readonly<object>

The logger module provides various logging functions.

Type declaration

NameTypeDefault valueDescription
boxLogFnlogger.boxLogs a message in a box format. Param The message to be logged.
debugLogFnlogger.debugLogs a debug message. Param The debug message to be logged.
dir(content) => void--
errorLogFnlogger.errorLogs an error message. Param The error message to be logged.
failLogFnlogger.failLogs a failure message. Param The failure message to be logged.
fatalLogFnlogger.fatalLogs a fatal error message. Param The fatal error message to be logged.
infoLogFnlogger.infoLogs an info message. Param The info message to be logged.
normalLogFnlogger.logLogs a normal message. Param The message to be logged.
silentLogFnlogger.silentLogs a silent message. Param The silent message to be logged.
successLogFnlogger.successLogs a success message. Param The success message to be logged.
table<T>(rows) => void-Logs an array of objects in a table format.
tag(color, tag, message, ...args) => void-Logs a message with a specified tag and color.
warnLogFnlogger.warnLogs a warning message. Param The warning message to be logged.

Released under the GPL-3.0 License.