2014-05-02 21:50:46 +08:00
|
|
|
bunyan = require 'bunyan'
|
|
|
|
|
|
|
|
config = require '../config'
|
|
|
|
|
|
|
|
logger = bunyan.createLogger({
|
2014-05-03 05:34:48 +08:00
|
|
|
name: 'bbbnode'
|
2014-05-02 21:50:46 +08:00
|
|
|
streams: [
|
|
|
|
{
|
2014-05-03 05:34:48 +08:00
|
|
|
level: 'debug'
|
2014-05-03 03:01:11 +08:00
|
|
|
stream: process.stdout
|
2014-05-02 21:50:46 +08:00
|
|
|
},
|
|
|
|
{
|
2014-05-03 05:34:48 +08:00
|
|
|
level: 'info'
|
2014-05-02 21:50:46 +08:00
|
|
|
path: config.log.path
|
|
|
|
}
|
|
|
|
]
|
|
|
|
})
|
|
|
|
|
|
|
|
module.exports = logger
|