From be41886e9c54ce19b9b4314d1397500f43a6f8b0 Mon Sep 17 00:00:00 2001
From: yuanyang <361485583@qq.com>
Date: Thu, 4 Dec 2025 10:55:42 +0800
Subject: [PATCH] fix: resolve log file cleanup issue on BifroMQ restart
- Add OnStartupTriggeringPolicy to trigger cleanup on startup
- Implement explicit Delete strategy with 72h or 7h retention
- Prevent log file accumulation and disk space exhaustion
---
build/build-bifromq-starter/conf/log4j2.xml | 96 ++++++++++++++++++---
1 file changed, 84 insertions(+), 12 deletions(-)
diff --git a/build/build-bifromq-starter/conf/log4j2.xml b/build/build-bifromq-starter/conf/log4j2.xml
index c3fd5569e..388006fb5 100644
--- a/build/build-bifromq-starter/conf/log4j2.xml
+++ b/build/build-bifromq-starter/conf/log4j2.xml
@@ -57,8 +57,14 @@
+
-
+
+
+
+
+
+
+
-
+
+
+
+
+
+
@@ -80,8 +92,14 @@
+
-
+
+
+
+
+
+
@@ -96,8 +114,14 @@
+
-
+
+
+
+
+
+
@@ -112,8 +136,14 @@
+
-
+
+
+
+
+
+
@@ -128,8 +158,14 @@
+
-
+
+
+
+
+
+
@@ -144,8 +180,14 @@
+
-
+
+
+
+
+
+
@@ -157,8 +199,14 @@
+
-
+
+
+
+
+
+
@@ -170,8 +218,14 @@
+
-
+
+
+
+
+
+
@@ -183,8 +237,14 @@
+
-
+
+
+
+
+
+
@@ -196,8 +256,14 @@
+
-
+
+
+
+
+
+
@@ -209,8 +275,14 @@
+
-
+
+
+
+
+
+