docs/platforms/mac/logging.md
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.
~/Library/Logs/OpenClaw/diagnostics.jsonl (rotates automatically; old files are suffixed with .1, .2, …)Notes:
Unified logging redacts most payloads unless a subsystem opts into privacy -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.
ai.openclaw)cat <<'EOF' >/tmp/ai.openclaw.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DEFAULT-OPTIONS</key>
<dict>
<key>Enable-Private-Data</key>
<true/>
</dict>
</dict>
</plist>
EOF
sudo install -m 644 -o root -g wheel /tmp/ai.openclaw.plist /Library/Preferences/Logging/Subsystems/ai.openclaw.plist
./scripts/clawlog.sh --category WebChat --last 5m.sudo rm /Library/Preferences/Logging/Subsystems/ai.openclaw.plist.sudo log config --reload to force logd to drop the override immediately.