bunyan-pretty

hack that creates a pretty-printed bunyan output stream

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
bunyan-pretty
0.0.18 years ago8 years agoMinified + gzip package size for bunyan-pretty in KB

Readme

bunyan-pretty
James Wyse's workaround for getting pretty-printed bunyan output in Node. See https://github.com/trentm/node-bunyan/issues/13 for details.
You could use it like this:
var bunyanPretty = require('bunyan-pretty');
bunyan.createLogger({
  name: 'audit',
  stream: process.stdout.isTTY ? bunyanPretty() : process.stdout,
  level: 'info'
})