Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 746 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 746 Bytes

pino-human

NPM Package Version

A pino ndjson formatter for humans

  • Colored
  • Fields aligned in columns for easy pattern recognition
  • Relative time
  • Logger names

Logger names

This formatter expects to have a name json string property in each log line as logger name

- pino()
+ pino({ base: { name: "logger" }})

Example

Using the example script from the Pino module modified to have logger names, this will look like:

demo

Install

npm install @hydre/pino-human

Usage

node app.js | pino-human

License

Unlicense