Bunyan Duckling
Maps the major Bunyan logging methods to console.log()
/.error()
. Useful for modules that want to be compatible with, but not require, Bunyan logging.
Installation
npm install bunyan-duckling --save
Usage
Simple:
var logger = ; logger; // Uses console.error()logger; // Uses console.log()
Supported methods
Has support for all seven Bunyan log levels.
.fatal()
– maps toconsole.error()
.error()
– maps toconsole.error()
.warn()
– maps toconsole.log()
.info()
– maps toconsole.log()
.debug()
– maps toconsole.log()
.trace()
– maps toconsole.log()