From 0647f472bc45d82a34e509434c112326499bbe17 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 8 Mar 2018 18:16:15 +0100 Subject: Fix logging timestamp --- server/helpers/logger.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server') diff --git a/server/helpers/logger.ts b/server/helpers/logger.ts index a4e5b58a4..e0b904950 100644 --- a/server/helpers/logger.ts +++ b/server/helpers/logger.ts @@ -37,7 +37,7 @@ const jsonLoggerFormat = winston.format.printf(info => { }) const timestampFormatter = winston.format.timestamp({ - format: 'YYYY-MM-dd HH:mm:ss.SSS' + format: 'YYYY-MM-DD HH:mm:ss.SSS' }) const labelFormatter = winston.format.label({ label @@ -52,7 +52,7 @@ const logger = new winston.createLogger({ maxsize: 5242880, maxFiles: 5, format: winston.format.combine( - timestampFormatter, + winston.format.timestamp(), labelFormatter, winston.format.splat(), jsonLoggerFormat -- cgit v1.2.3