From f0cad329c8af9993d57bd84a80bcb6a929370fd2 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Thu, 17 Nov 2022 19:40:38 +0530 Subject: [PATCH] add utc diff in log time --- src/utils/logging.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/logging.ts b/src/utils/logging.ts index fb704f00a..58795170a 100644 --- a/src/utils/logging.ts +++ b/src/utils/logging.ts @@ -5,6 +5,8 @@ export function setupLogging() { log.transports.file.fileName = LOG_FILENAME; log.transports.file.maxSize = MAX_LOG_SIZE; log.transports.console.level = false; + log.transports.file.format = + '[{y}-{m}-{d} {h}:{i}:{s}.{ms} UTC-{z}] [{level}]{scope} {text}'; } export function makeID(length: number) {