@hydre/pino-human
v1.3.0
Published
A pino prettifier for humans
Downloads
302
Readme
pino-human
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:
Install
npm install @hydre/pino-human
Usage
node app.js | pino-human
License
Unlicense