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