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

index 3bf413dd52a261c0670d133df224f5c654f38b79..807aefadac6c1562fa732e98f3c4a5806c8c2fbe 100755 (executable)
@@ -18,7 +18,10 @@ log4js.configure({
       type: 'stdout',
       layout: {
         type: "pattern",
-        pattern: "[%d{ISO8601}] [%p] - %f:%l %m%n --", // Pattern including file and line number
+        // %highlight{} conversion word for colorization
+        pattern: '%[%d{yyyy-MM-dd hh:mm:ss.SSS} %p %c%] %m%n',
+        // Default highlight colors for common levels (optional, but good practice)
+        // You can customize these or add more specific level-color mappings
         highlight: {
           FATAL: 'red',
           ERROR: 'red',
@@ -27,6 +30,15 @@ log4js.configure({
           DEBUG: 'blue',
           TRACE: 'cyan'
         }
+        /*pattern: "[%d{ISO8601}] [%p] - %f:%l %m%n --", // Pattern including file and line number
+        highlight: {
+          FATAL: 'red',
+          ERROR: 'red',
+          WARN: 'yellow',
+          INFO: 'green',
+          DEBUG: 'blue',
+          TRACE: 'cyan'
+        }*/
       },
     },
     errorFile: {