Constructs a new Logger instance with the provided options.
The options for configuring the logger.
Readonly
optionsThe options for configuring the logger.
Static
colorA map containing color functions for different log levels.
Static
DEFAULT_The default options for the logger.
Static
dirnameStatic
prefixesA map containing prefixes for different log levels.
Static
Optional
saveGets whether the logger is active or not.
Sets whether the logger is active or not.
Gets the log level of the logger.
Sets the log level of the logger.
Gets the name of the logger.
Sets the name of the logger.
Logs a debug message.
The arguments to log.
Logs an error message.
The arguments to log.
Logs a fatal error message.
The arguments to log.
Logs an info message.
The arguments to log.
Logs a message with the specified log level.
The log level.
The arguments to log.
The logged message.
Logs a warning message.
The arguments to log.
Static
clearStatic
customizeStatic
customizeCustomizes the logging filename by providing a callback function. The callback receives the logger instance and should return the desired filename.
A function that takes the logger instance and returns a string representing the customized filename for the log.
Static
noA function that returns the input string as is, without any color modification.
The message to log.
The input message as is.
Represents a logger utility for logging messages with various log levels.