Create a new instance.
Options for creating a new instance.
Protected
consoleThe log level for console output. Can be 'NONE', 'DEBUG', 'INFO', 'WARN', or 'ERROR'.
Protected
debugWhether to debug info to console.
Protected
debugWhether to log debug info to the logfile.
Protected
errorWhether to log errors to console.
Protected
errorWhether to log errors to the logfile.
Protected
fileThe log level for the logfile. Can be 'NONE', 'DEBUG', 'INFO', 'WARN', or 'ERROR'.
Protected
infoWhether to log info to console.
Protected
infoWhether to log info to the logfile.
Protected
logThe directory path of the log file.
Protected
timezoneA negative or positive integer representing the timezone offset from UTC, in hours.
Protected
warnWhether to log warnings to console.
Protected
warnWhether to log warnings to the logfile.
Static
optionDefault options for creating new instances.
The filepath of the log file.
Get the current instance's properties.
Re-initialize the current instance with the specified options.
This function is used to print the events emitted by an EventEmitter.
The EventEmitter that is emitting the events.
Options for logging the events.
This function allows you to see what events are being emitted by an EventEmitter at runtime.
Protected
logWrite log entry to logfile
The log level.
The message to print to console.
Generated using TypeDoc
This class is a utility for logging messages to the console and/or a log file. It supports different log levels ('NONE', 'DEBUG', 'INFO', 'WARN', 'ERROR') for both console and file logging. It also supports color formatting for console messages. Different colors can be specified for each log level.