2012-01-30 22:28:02 +00:00
|
|
|
var Logger = require('../lib/bunyan');
|
|
|
|
log = new Logger({
|
2013-03-29 00:42:32 +00:00
|
|
|
name: 'amon',
|
|
|
|
streams: [
|
|
|
|
{
|
|
|
|
level: 'info',
|
|
|
|
stream: process.stdout,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
level: 'error',
|
|
|
|
path: 'multi.log'
|
|
|
|
}
|
|
|
|
]
|
2012-01-30 22:28:02 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
|
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');
|