0.0.1 • Published 10 years ago

bunyan-pretty v0.0.1

Weekly downloads
153
License
ISC
Repository
-
Last release
10 years ago

#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'
})