1
0
mirror of https://github.com/comatory/fb2iCal synced 2025-01-27 15:49:17 +01:00

remove colorized log output, add timestamps

This commit is contained in:
Ondřej Synáček 2019-11-27 12:44:47 +01:00
parent 95d1828b82
commit bdfb097bbb
2 changed files with 5 additions and 5 deletions

View File

@ -40,9 +40,9 @@ const forceSecure = (req, res, next) => {
const createRouteLogger = ({ dev }) => {
return expressWinston.logger({
transports: createTransports(),
transports: createTransports(dev),
format: winston.format.combine(
winston.format.colorize(),
winston.format.timestamp(),
winston.format.json()
),
meta: true,
@ -52,9 +52,9 @@ const createRouteLogger = ({ dev }) => {
const createErrorLogger = ({ dev }) => {
return expressWinston.errorLogger({
transports: createTransports(),
transports: createTransports(dev),
format: winston.format.combine(
winston.format.colorize(),
winston.format.timestamp(),
winston.format.json()
),
})

View File

@ -78,7 +78,7 @@ const createAppLogger = ({ dev }) => {
return winston.createLogger({
transports: createTransports(dev),
format: winston.format.combine(
winston.format.colorize(),
winston.format.timestamp(),
winston.format.json()
),
})