Skip to content

HydreIO/pino-human

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A pino prettifier for humans

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published