mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
add console loggin in production
This commit is contained in:
parent
8327db561e
commit
8984736ca7
1 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue