I am initializing the bunyan logger in my nodejs code as below:
var log = bunyan.createLogger({ name: \'myapp\', stream: process.stdout, level: \
Try this ...
var Logger = require('bunyan'); var applogger = new Logger({ name: 'helloapi', streams: [ { level: 'info', path: './log/applogging.log' } ] });
check their home page for further instructions https://github.com/trentm/node-bunyan#streams-introduction
Hope this has helped. :)