refactor(logging): add subsystem console formatting

This commit is contained in:
Peter Steinberger
2025-12-21 13:23:42 +00:00
parent bcd3c13e2c
commit 5b2e7d4464
6 changed files with 303 additions and 2 deletions

View File

@@ -46,10 +46,18 @@ If set, CLAWDIS derives defaults (only when you havent set them explicitly):
- Default log file: `/tmp/clawdis/clawdis-YYYY-MM-DD.log`
- If you want a stable path, set `logging.file` to `/tmp/clawdis/clawdis.log`.
- Console output can be tuned separately via:
- `logging.consoleLevel` (defaults to `info`, bumps to `debug` when `--verbose`)
- `logging.consoleStyle` (`pretty` | `compact` | `json`)
```json5
{
logging: { level: "info", file: "/tmp/clawdis/clawdis.log" }
logging: {
level: "info",
file: "/tmp/clawdis/clawdis.log",
consoleLevel: "info",
consoleStyle: "pretty"
}
}
```