Logging (macOS)
Rolling diagnostics file log (Debug pane)
OpenClaw routes macOS app logs through swift-log (unified logging by default) and can write a local, rotating file log to disk when you need a durable capture.- Verbosity: Debug pane β Logs β App logging β Verbosity
- Enable: Debug pane β Logs β App logging β βWrite rolling diagnostics log (JSONL)β
- Location:
~/Library/Logs/OpenClaw/diagnostics.jsonl(rotates automatically; old files are suffixed with.1,.2, β¦) - Clear: Debug pane β Logs β App logging β βClearβ
- This is off by default. Enable only while actively debugging.
- Treat the file as sensitive; donβt share it without review.
Unified logging private data on macOS
Unified logging redacts most payloads unless a subsystem opts intoprivacy -off. Per Peterβs write-up on macOS logging privacy shenanigans (2025) this is controlled by a plist in /Library/Preferences/Logging/Subsystems/ keyed by the subsystem name. Only new log entries pick up the flag, so enable it before reproducing an issue.
Enable for OpenClaw (ai.openclaw)
- Write the plist to a temp file first, then install it atomically as root:
- No reboot is required; logd notices the file quickly, but only new log lines will include private payloads.
- View the richer output with the existing helper, e.g.
./scripts/clawlog.sh --category WebChat --last 5m.
Disable after debugging
- Remove the override:
sudo rm /Library/Preferences/Logging/Subsystems/ai.openclaw.plist. - Optionally run
sudo log config --reloadto force logd to drop the override immediately. - Remember this surface can include phone numbers and message bodies; keep the plist in place only while you actively need the extra detail.