Note
Minimal logging prettifier for Node.js.
Usage
Installation
npm install note-log --save
Syntax
;
The handle and debug level are omittable, but exposes more than one logged values to being misinterpreted as a handle or debug level.
Configuration
All configuration is optional.
note;
dateFormat
Please consult the Moment.js documentation for a detailed overview of all format options.
dateColor, debugLevelColors, debugTextColors, handleColor
Please consult the cli-color documentation for a detailed overview of all color options. To apply both a foreground and a background color, use an array specifying both, e.g. ['blue', 'bgYellow']
. To remove any default coloring, specify null
. debugLevelColors affects the color of the debug level indicator only; debugTextColors applies to logged values.
autoError
Debug level to escalate to when error is detected. false
to disable.
handleLength
Length of handle in characters. 0
to inherit from handle.