Maps the major Bunyan logging methods to console.log()
/.error()
. Useful for modules that want to be compatible with, but not require, Bunyan logging.
npm install bunyan-duckling --save
Simple:
var logger = require('bunyan-duckling');
logger.error('Warning'); // Uses console.error()
logger.info('Informational'); // Uses console.log()
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()