1.0.2 • Published 9 years ago
bunyan-duckling v1.0.2
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 --saveUsage
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()