]> PHS Git Server - phs-api.git/commitdiff
Testing vpn paths.
authorcharleswrayjr <charleswrayjr@gmail.com>
Mon, 8 Sep 2025 16:45:45 +0000 (11:45 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Mon, 8 Sep 2025 16:45:45 +0000 (11:45 -0500)
src/middleware/loggerMiddleWare.js

index 3fc1159f5e227c4d8c1e02529719e63f96a7fff6..b9652077e3f9849ff4263278261e8063ddefca2e 100755 (executable)
@@ -12,7 +12,11 @@ log4js.configure({
       type: "file",
       filename: "logs/app.log",
       maxLogSize: 10485760,
-      numBackups: 3
+      numBackups: 3,
+      layout: {
+        type: "pattern",
+        pattern: "%d %p %c %f:%l %m%n", // Pattern including file and line number
+      },
     },
     out: {
       type: 'stdout'
@@ -35,7 +39,7 @@ log4js.configure({
     }
   },
   categories: {
-    default: { "appenders": [ "app", "errors", 'out' ], "level": "DEBUG" },        
+    default: { "appenders": [ "app", "errors", 'out' ], "level": "DEBUG", enableCallStack: true },
     http: { "appenders": [ "access"], "level": "INFO" }
   }
 });