Skip to content

Getting Clearer Logs in OpenClaw for macOS

We’ve all been there. You are trying to fix a bug that only shows up when you aren’t looking. You check the logs, but they are either too thin or filled with <private> placeholders that hide the very data you need to see.

I find that getting the right level of detail is the fastest way to stop guessing and start fixing. Here is how I set up OpenClaw logs on macOS to get the full picture.

  • OpenClaw installed on macOS.
  • Terminal access with sudo privileges.

By default, OpenClaw routes logs through the macOS unified logging system. If you need a durable file on your disk, you can turn on the rolling diagnostics log.

  1. Go to Debug pane → Logs → App logging → Verbosity and set your level.
  2. Check the box for “Write rolling diagnostics log (JSONL)”.
  3. Find your logs at ~/Library/Logs/OpenClaw/diagnostics.jsonl.

The app rotates these files automatically. Old logs get a suffix like .1 or .2. I suggest keeping this off unless you are actively debugging, as these files can get large and contain sensitive data.

macOS unified logging often hides payloads to protect privacy. To see the actual data for the bot.molt subsystem, you need to install a specific configuration profile.

Run this in your terminal to create and install the necessary plist:

Terminal window
cat <<'EOF' >/tmp/bot.molt.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/bot.molt.plist /Library/Preferences/Logging/Subsystems/bot.molt.plist

You don’t need to reboot. The system picks up the change quickly. You can then view the detailed output using the helper script:

Terminal window
./scripts/clawlog.sh --category WebChat --last 5m

The logging system only applies the “privacy -off” flag to new log entries. If you still see redacted data, make sure you installed the plist before you started the process you are trying to debug.

When you are done, I recommend removing the override to keep your system logs clean and private. Run these commands:

  1. Remove the file: sudo rm /Library/Preferences/Logging/Subsystems/bot.molt.plist
  2. Force a reload: sudo log config --reload
  3. Clear the app logs in the UI: Debug pane → Logs → App logging → “Clear”

Need more help with your setup? Check out the AI Setup Assistant.

OpenClaw

OpenClaw Expert

Still stuck?

If this page didn't answer your case, ask OpenClaw Expert for step-by-step guidance.