Constructs a new log level.
Level label.
Level value. Must be >= zero.
Optional
style: stringLabel CSS style. Defaults to "font-weight:bold;"
.
Optional
logFn: ((...data) => void)Logging function. Defaults to console.log
.
Rest
...data: unknown[]Readonly
labelLevel label.
Optional
Readonly
logLogging function. Defaults to console.log
.
Logging function. Defaults to console.log
.
Rest
...data: unknown[]Optional
Readonly
styleLabel CSS style. Defaults to "font-weight:bold;"
.
Readonly
valueLevel value. Must be >= zero.
Static
Readonly
ALLLog always. Its value is 0.
Static
Readonly
DEBUGLog at debugging level. Its value is 100.
Static
Readonly
ERRORLog at error level. Its value is 400.
Static
Readonly
INFOLog at information level. Its value is 200.
Static
Readonly
OFFDisables logging.
Static
Readonly
WARNLog at warning level. Its value is 300.
Static
getGets the log level for the given level label.
The level label "OFF", "ALL", "DEBUG", "INFO", "WARN", or "ERROR", or a level instance.
The log label or undefined
if no such level exists.
Gets the log level for the given log label.
The log label or the given defaultLevel
if no such level exists.
Generated using TypeDoc
A log level.