Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    bunyan-ducklingpublic

    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 to console.error()
    • .error() – maps to console.error()
    • .warn() – maps to console.log()
    • .info() – maps to console.log()
    • .debug() – maps to console.log()
    • .trace() – maps to console.log()

    Keywords

    none

    install

    npm i bunyan-duckling

    Downloadsweekly downloads

    412

    version

    1.0.2

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar