This package has been deprecated
All functionality has been merged into `choo-devtools`. Thanks for using `choo-log`!
choo-devtools. Thanks for passing by!This project has been deprecated. All functionality has been merged into
Development logger for choo.
var log =var choo =var app =appapp
logger = log(opts)
Create a new logger instance. Opts can contain:
- timing: defaults to
true. Disable calls to
window.performancetiming API. Timing calls will not run in browsers that don't support it out of the box.
- clearResourceTimings: defaults to
true. Disable clearing the window.performance resourcetimingbuffer when full. Set to
falseif the buffer is cleared somewhere else.
- colors: defaults to the default theme of nanologger.
Send a log event.
choo-log will pass
log:<level> events through to nanologger. For example:
These are just normal events, so you can listen to them in addition to them being logged:
Set the nanologger log level, e.g.:
$ npm install choo-log