20 lines
297 B
CoffeeScript
20 lines
297 B
CoffeeScript
|
bunyan = require 'bunyan'
|
||
|
|
||
|
config = require '../config'
|
||
|
|
||
|
logger = bunyan.createLogger({
|
||
|
name: 'bbbnode',
|
||
|
streams: [
|
||
|
{
|
||
|
level: 'debug',
|
||
|
stream: process.stdout,
|
||
|
},
|
||
|
{
|
||
|
level: 'info',
|
||
|
path: config.log.path
|
||
|
}
|
||
|
]
|
||
|
})
|
||
|
|
||
|
module.exports = logger
|