add console loggin in production
This commit is contained in:
@@ -27,9 +27,17 @@ const logger = createLogger({
|
|||||||
createSymlink: true,
|
createSymlink: true,
|
||||||
zippedArchive: true,
|
zippedArchive: true,
|
||||||
maxSize: '10m',
|
maxSize: '10m',
|
||||||
maxFiles: '14d',
|
maxFiles: '10d',
|
||||||
format: format.combine(format.timestamp(), format.splat(), gancioFormat)
|
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
|
module.exports = logger
|
||||||
|
|||||||
Reference in New Issue
Block a user