Licence
MIT
Version
1.0.2
Deps
0
Vulns
0
Weekly
0
DeprecatedThis package is deprecated
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 = require('bunyan-duckling');
logger.error('Warning'); // Uses console.error()
logger.info('Informational'); // 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()