pino-garland
v1.1.3
Published
A pino prettifier that formats your logs in a way that is easy to read and understand.
Downloads
7
Readme
Pino Garland
What
Pino Garland is a Pino transport, that pretty prints logs to the console. It transforms:
{ "level": 30, "time": 1546300800000, "msg": "hello world", "pid": 1234, "hostname": "localhost", "v": 1 }
into
Installation
npm install pino-garland
Usage
const pino = require('pino')
const transport = pino.transport({
target: '/absolute/path/to/my-transport.mjs'
})
pino(transport)
Legacy
pnpm run server | pino-garland