From 53942e7fef136873f6d9ef6291554bb21412b4d4 Mon Sep 17 00:00:00 2001 From: David Arranz Date: Sun, 8 Sep 2024 22:01:07 +0200 Subject: [PATCH] . --- server/src/infrastructure/logger/index.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/server/src/infrastructure/logger/index.ts b/server/src/infrastructure/logger/index.ts index b4ebdad..2384155 100644 --- a/server/src/infrastructure/logger/index.ts +++ b/server/src/infrastructure/logger/index.ts @@ -28,7 +28,7 @@ function initLogger(rTracer) { } return out; - }), + }) ); const fileFormat = format.combine( @@ -38,11 +38,11 @@ function initLogger(rTracer) { //format.metadata(), format.metadata({ fillExcept: ["message", "level", "timestamp", "label"] }), format.simple(), - format.json(), + format.json() ); const logger = createLogger({ - level: process.env.NODE_ENV === "production" ? "info" : "debug", + level: process.env.NODE_ENV === "production" ? "debug" : "debug", format: fileFormat, @@ -70,14 +70,14 @@ function initLogger(rTracer) { // If we're not in production then log to the `console` with the format: // `${info.level}: ${info.message} JSON.stringify({ ...rest }) ` // - if (!config.isProduction) { - logger.add( - new transports.Console({ - format: consoleFormat, - level: "debug", - }), - ); - } + //if (!config.isProduction) { + logger.add( + new transports.Console({ + format: consoleFormat, + level: "debug", + }) + ); + //} return logger; }