From 434e66a75635ddc079d4ec88cb9abf585c1116b2 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 4 Nov 2026 08:49:28 +0000 Subject: [PATCH] feat(backend): keep up to a week in the current log file and cap log history Roll the log file weekly instead of daily (still at 10 MB at most), so /actuator/logfile shows up to a week of logs. Keep 13 weeks (about 90 days) of archived logs, capped at 1 GB; before, archives were never deleted. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01SWRrkPxjD9vpVSdEeCvnXX --- backend/src/main/resources/logback-spring.xml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/backend/src/main/resources/logback-spring.xml b/backend/src/main/resources/logback-spring.xml index 401e8651..c3ca7a0c 100644 --- a/backend/src/main/resources/logback-spring.xml +++ b/backend/src/main/resources/logback-spring.xml @@ -22,9 +22,13 @@ - - ${LOGS}/archived/spring-boot-logger-%d{yyyy-MM-dd}.%i.log + + ${LOGS}/archived/spring-boot-logger-%d{YYYY-ww}.%i.log 10MB + + 13 + 1GB