How to set 'short' output mode in bunyan by default

Viewed 4785

Regular (raw) logs in bunyan looks as following:

$ node myapp.js
{"name":"myapp","hostname":"myhost","pid":34572,"level":30,"msg":"start","time":"2013-01-04T07:47:25.814Z","v":0}
{"name":"myapp","hostname":"myhost","pid":34572,"widget_type":"wuzzle","level":30,"msg":"creating a wuzzle","time":"2013-01-04T07:47:25.815Z","v":0}

It is possible to use the "short" output mode, using the CLI, by piping logs to bunyan -o short

$ node myapp.js  | bunyan -o short
07:46:42.707Z  INFO myapp: start
07:46:42.709Z  INFO myapp: creating a wuzzle (widget_type=wuzzle)

Is it possible to use 'short' mode by default, so node myapp.js will produce short version of the logs?

2 Answers
Related