From e395baeb434e16045653dda8a223cb411f8c198c Mon Sep 17 00:00:00 2001 From: Lei OT Date: Fri, 6 Sep 2024 16:47:17 +0800 Subject: [PATCH] =?UTF-8?q?conf:=20=E8=B0=83=E6=95=B4=20=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/config/log4.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/config/log4.js b/server/config/log4.js index 0c9b467..54e7326 100644 --- a/server/config/log4.js +++ b/server/config/log4.js @@ -6,7 +6,9 @@ const log_config = { "type": "dateFile", "filename": "logs/app", "pattern": "yyyy-MM-dd.log", - "alwaysIncludePattern": true + "alwaysIncludePattern": true, + "numBackups": 7, // the number of old files that matches the pattern to keep (excluding the hot file). + "compress": true, } // "everything": { // "type": "multiFile",