Optionaloptions: PropsPrinterOptions
to configure the rendering
Loxer.printProps().log('restoring order', payment)
Loxer.printProps({ depth: 1 }).open('checkout', cart)
Loxer.printProps().error(error, payment)
Props are attached to every log that is called with them, and reach the output stream and the history whether or not this is chained. What it decides is whether the built-in console output renders them below the message, connected to the log's box column.
Loxer.printProps() and Loxer.printProps({}) render
alike. The parameter carries formatting configuration, not the decisionnull and 0 includedOutputLoxRenderer or PropsPrinter.of(lox).print(), reading lox.printProps to honor the requestOptionaloptions: PropsPrinterOptions
to configure the rendering
Optionaldoit: boolean
should the log be highlighted
Loxer.highlight().log(...)
Loxer.highlight().open(...)
Loxer.highlight().of(...)
Loxer.highlight().error(...)
foregroundColor and backgroundColor of the log will be inverted.doit?: boolean can conditionally highlight the log with true.module(...)Optionaldoit: boolean
should the log be highlighted
OptionalmoduleId: string
the key of the module from LoxerOptions.modules. undefined defaults to module "DEFAULT"
Loxer.module(string).log(...)
Loxer.module(string).open(...)
Loxer.module(string).of(...)
NONE, which will lead the log to not have the box layoutLoxer.module().log(...) the module will be DEFAULT,
which will lead the log to have a box layout but no nameLoxer.init(options)Loxer.init(options).highlight(...)string by default. Augment the LoxerModuleRegistry to have them
autocompleted and typo-checked against the modules of your projectOptionalmoduleId: string
the key of the module from LoxerOptions.modules. undefined defaults to module "DEFAULT"
Render a log's props (shortcut)
Is a shortcut for Loxer.printProps().