2.1.0 • Published 9 years ago
bunyan-readable v2.1.0
bunyan-readable
This project aims to make bunyan logs more readable. It is meant to produce output for humans and not machines.
Format
Bunyan
{
"name": "name",
"hostname": "hostname",
"pid": "pid",
"level": "level",
"msg": "msg",
"time": "time",
"v": "log_version",
"custom_field": "whatever"
}
bunyan-readable
name[hostname/pid]: name(level): msg=msg custom_field=whatever
Note: name(level) turns log level codes into level names e.g. 30 into info
Install
$ npm install bunyan-readable -g
Now you can pipe bunyan output to `bunyan-readable'
$ node yourscript.js | bunyan-readable