Skip to content

GamingCoder/bunyan-readable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published