Verified Commit 8984736c authored by les's avatar les
Browse files

add console loggin in production

parent 8327db56
......@@ -27,9 +27,17 @@ const logger = createLogger({
createSymlink: true,
zippedArchive: true,
maxSize: '10m',
maxFiles: '14d',
maxFiles: '10d',
format: format.combine(format.timestamp(), format.splat(), gancioFormat)
})]
}),
new transports.Console(
{
handleExceptions: true,
handleRejections: true,
level: config.log_level || 'info',
format: format.combine(format.timestamp(), format.splat(), format.colorize(), gancioFormat)
}
)]
})
module.exports = logger
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment