fix: wire anthropic payload log diagnostics (#1501) (thanks @parubets)
This commit is contained in:
1 parent
07bc85b7fb
commit
e85abaca2b
8 files changed
+213
-10
No files matched your search
@@ -95,6 +95,29 @@ Console logs are **TTY-aware** and formatted for readability:
|
||||
|
||||
Console formatting is controlled by `logging.consoleStyle`.
|
||||
|
||||
## Anthropic payload log (debugging)
|
||||
|
||||
For Anthropic-only runs, you can enable a dedicated JSONL log that captures the
|
||||
exact request payload (as sent) plus per-run usage stats. This log includes full
|
||||
prompt/message data; treat it as sensitive.
|
||||
|
||||
```json
|
||||
{
|
||||
"diagnostics": {
|
||||
"anthropicPayloadLog": {
|
||||
"enabled": true,
|
||||
"filePath": "/path/to/anthropic-payload.jsonl"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Defaults + overrides:
|
||||
|
||||
- Default path: `$CLAWDBOT_STATE_DIR/logs/anthropic-payload.jsonl`
|
||||
- Env enable: `CLAWDBOT_ANTHROPIC_PAYLOAD_LOG=1`
|
||||
- Env path: `CLAWDBOT_ANTHROPIC_PAYLOAD_LOG_FILE=/path/to/anthropic-payload.jsonl`
|
||||
|
||||
## Configuring logging
|
||||
|
||||
All logging configuration lives under `logging` in `~/.clawdbot/clawdbot.json`.
|
||||
|
||||
Reference in new issue
Block a user