pino-colada

    2.2.0 • Public • Published

    pino-colada 🍹

    npm version build status downloads js-standard-style

    A cute ndjson formatter for pino.

    pino-colada

    Usage

    Pipe a server that uses pino into pino-colada for logging.

    node server.js | pino-colada

    pino-colada

    After parsing input from server.js, pino-colada returns a stream and pipes it over to process.stdout. It will output a timestamp, a log level in a form of an emoji, and a message.

    Programmatic integration as pino prettifier

    const pino = require('pino')
    const logger = pino({
      prettyPrint: {},
      prettifier: require('pino-colada')
    })
    
    logger.info('hi')

    Install

    npm install pino-colada

    Related content

    License

    MIT

    Install

    npm i pino-colada

    DownloadsWeekly Downloads

    19,897

    Version

    2.2.0

    License

    MIT

    Unpacked Size

    57.9 kB

    Total Files

    10

    Last publish

    Collaborators

    • lrlna