pino-colada
cute ndjson logger for pino
Last updated 8 days ago by lrlna .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install pino-colada 
SYNC missed versions from official npm registry.

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({
  prettifier: require('pino-colada')
})

logger.info('hi')

Install

npm install pino-colada

Related content

License

MIT

Current Tags

  • 2.0.1                                ...           latest (8 days ago)

23 Versions

  • 2.0.1                                ...           8 days ago
  • 1.6.1                                ...           3 months ago
  • 2.0.0                                ...           3 months ago
  • 1.6.0 [deprecated]           ...           3 months ago
  • 1.5.1                                ...           6 months ago
  • 1.5.0                                ...           8 months ago
  • 1.4.5                                ...           a year ago
  • 1.4.4                                ...           2 years ago
  • 1.4.3                                ...           2 years ago
  • 1.4.2                                ...           3 years ago
  • 1.4.1                                ...           3 years ago
  • 1.4.0                                ...           3 years ago
  • 1.3.1                                ...           3 years ago
  • 1.3.0                                ...           3 years ago
  • 1.2.3                                ...           3 years ago
  • 1.2.2                                ...           3 years ago
  • 1.2.1                                ...           3 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago

Copyright 2014 - 2016 © taobao.org |