mirror of
https://github.com/Hopiu/webapi-eca.git
synced 2026-04-29 02:54:49 +00:00
16 lines
No EOL
261 B
CoffeeScript
16 lines
No EOL
261 B
CoffeeScript
bunyan = require 'bunyan'
|
|
opt =
|
|
name: "webapi-eca"
|
|
opt.streams = [
|
|
{
|
|
level: 'info'
|
|
stream: process.stdout
|
|
},
|
|
{
|
|
level: 'info'
|
|
path: 'logs/server.log'
|
|
}
|
|
]
|
|
# Finally we create the bunyan logger
|
|
logger = bunyan.createLogger opt
|
|
logger.info 'weeee' |