bunyan-readable

2.1.0 • Public • Published

bunyan-readable Build Status

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

Readme

Keywords

Package Sidebar

Install

npm i bunyan-readable

Weekly Downloads

2

Version

2.1.0

License

MIT

Last publish

Collaborators

  • gamingcoder