node-bunyan-lite/examples/multi.js

21 lines
400 B
JavaScript
Raw Permalink Normal View History

var bunyan = require('../lib/bunyan');
log = bunyan.createLogger({
2013-03-29 00:42:32 +00:00
name: 'amon',
streams: [
{
level: 'info',
stream: process.stdout,
},
{
level: 'error',
path: 'multi.log'
}
]
});
2012-06-05 06:19:39 +00:00
log.debug('hi nobody on debug');
log.info('hi stdout on info');
log.error('hi both on error');
log.fatal('hi both on fatal');