Constructs a new logger.
Logger name
Optional
level: LogLevelLogger level. Defaults to the global log level
Optional
logFn: ((...data) => void)Logger function. Defaults to console.log
Rest
...data: unknown[]Checks whether this logger is enabled for the given the log level.
The log level or level label.
Sets the logger's level.
the new level or level label or null
, or undefined
.
Static
getStatic
getStatic
setGenerated using TypeDoc
A logger.