You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add automatic log cleanup after configurable retention period
- Add `logs.retention_days` setting (default: 30 days, 0 = keep forever)
- Add `cleanup_logs_older_than()` to ServerLogManager that walks the
entire log directory tree removing rotated files older than the
retention period (both server logs and app-level tracing logs)
- Run cleanup once on app startup and then every 24 hours via a
background task that reads the current retention setting
- Add Tauri commands `get_log_retention_days` / `set_log_retention_days`
(setting triggers an immediate cleanup with the new value)
- Add Auto-Cleanup dropdown to the Logs section in Settings UI with
options: 7, 14, 30, 60, 90 days, or keep forever
- Add unit tests for cleanup logic (retention=0 skip, old file removal,
app tracing log cleanup, empty directory cleanup)
- Add settings service test for log_retention_days
https://claude.ai/code/session_01V5tgbLyeWrPW5zZ1toRoPZ
0 commit comments