pino-colada-ext
v0.0.1
Published
cute ndjson logger for pino
Downloads
5
Maintainers
Readme
pino-colada 🍹
A cute ndjson formatter for pino.
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