Skip to content

Development mode prettifier for Pino

License

Notifications You must be signed in to change notification settings

lifion/pino-prettifier

Repository files navigation

pino-prettifier

npm version

This package provides a log prettifier for the Pino logging library.

Usage

Install the library as usual:

npm install pino-prettifier

Then use the proper pino options:

const pino = require('pino');
const prettifier = require('pino-prettifier');
const logger = pino({
  prettyPrint: true,
  prettifier
});

License

MIT