.open()
Loxer.debug('cache miss'); // a single log at level 'debug' Loxer.debug.open('loading user'); // a log box at level 'debug' Copy
Loxer.debug('cache miss'); // a single log at level 'debug' Loxer.debug.open('loading user'); // a log box at level 'debug'
LogMethods.warn, LogMethods.info and LogMethods.debug have this shape. LogMethods.error does not: it takes an Error rather than a message, and it opens no box (see BoxLevel).
Error
Reading the property writes no log, so the modifiers keep working in front of it: Loxer.h().m('DB').debug.open(...). Only the call at the end of the chain resets them.
Loxer.h().m('DB').debug.open(...)
Optional
to log, of any type
any number of values to attach to the log
The log methods of one level
Call it to write a single log at that level, or use its
.open()to open a box at it.LogMethods.warn, LogMethods.info and LogMethods.debug have this shape. LogMethods.error does not: it takes an
Errorrather than a message, and it opens no box (see BoxLevel).Reading the property writes no log, so the modifiers keep working in front of it:
Loxer.h().m('DB').debug.open(...). Only the call at the end of the chain resets them.