fix(logging): rotate file logs instead of suppressing

This commit is contained in:
Vincent Koc
2026-04-25 22:50:38 -07:00
parent e54f5c4068
commit cd89adf0ac
10 changed files with 155 additions and 52 deletions

View File

@@ -23,6 +23,11 @@ By default, the Gateway writes a rolling log file under:
The date uses the gateway host's local timezone.
Each file rotates when it reaches `logging.maxFileBytes` (default: 100 MB).
OpenClaw keeps up to five numbered archives beside the active file, such as
`openclaw-YYYY-MM-DD.1.log`, and keeps writing to a fresh active log instead of
suppressing diagnostics.
You can override this in `~/.openclaw/openclaw.json`:
```json