140c9fda91
No need to differ from log4j Logger "name".
20 lines
345 B
JavaScript
20 lines
345 B
JavaScript
var Logger = require('../lib/bunyan');
|
|
log = new Logger({
|
|
name: "amon",
|
|
streams: [
|
|
{
|
|
level: "info",
|
|
stream: process.stdout,
|
|
},
|
|
{
|
|
level: "error",
|
|
path: "multi.log"
|
|
}
|
|
]
|
|
});
|
|
|
|
|
|
log.debug("hi nobody on debug");
|
|
log.info("hi stdout on info");
|
|
log.error("hi both on error");
|
|
log.fatal("hi both on fatal");
|