A specification of log level names and their associated priority. A lower number is given higher priority. Example:
const levels: Levels = {
error: 0,
warn: 1,
info: 2,
debug: 3
};
info
has a higher priority than debug
, but not as high as warn
. A Transport
with a level of info
will
execute log entries on info
, warn
, and error
levels, but not on debug
.
A specification of log level names and their associated priority. A lower number is given higher priority. Example:
const levels: Levels = { error: 0, warn: 1, info: 2, debug: 3 };
info
has a higher priority thandebug
, but not as high aswarn
. ATransport
with a level ofinfo
will execute log entries oninfo
,warn
, anderror
levels, but not ondebug
.