From 54b957c819e2e74c42bbe393b22f129bff90a8e5 Mon Sep 17 00:00:00 2001 From: Danial Date: Thu, 27 Jun 2024 18:13:25 +0900 Subject: [PATCH] Change logging format --- packages/server/src/service/common/Logger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/service/common/Logger.ts b/packages/server/src/service/common/Logger.ts index d6ae8e3..790372b 100644 --- a/packages/server/src/service/common/Logger.ts +++ b/packages/server/src/service/common/Logger.ts @@ -4,7 +4,7 @@ import * as winston from "winston"; const { combine, timestamp, printf, colorize } = winston.format; // tslint:disable-next-line:no-shadowed-variable const customFormat = printf(({ level, timestamp, message }) => { - return `${timestamp} ${level} ${message}`; + return `${level.toUpperCase()} [${timestamp}] ${message}`; }); export class Logger {