node-bunyan-lite/examples/multi.js

21 lines
345 B
JavaScript
Raw Normal View History

var Logger = require('../lib/bunyan');
log = new Logger({
2012-06-05 06:19:39 +00:00
name: 'amon',
streams: [
{
2012-06-05 06:19:39 +00:00
level: 'info',
stream: process.stdout,
},
{
2012-06-05 06:19:39 +00:00
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');