macOS logging
기준일: 2026-07-26
공식 기준: macOS logging
macOS logging 문서는 OpenClaw 공식 문서(platforms/mac/logging)를 한국어로 정리한 가이드입니다. OpenClaw logging: rolling diagnostics file log + unified log privacy flags 명령·설정 키·코드 예시는 공식 문서를 그대로 보존하며, 해석과 절차 안내는 한국어로 제공합니다. 최종 동작은 설치된 CLI 버전과 공식 원문을 확인하세요.
핵심 요약
OpenClaw logging: rolling diagnostics file log + unified log privacy flags
한국어 가이드 범위: platforms/mac/logging 경로의 설정·명령·제약·예시를 학습용으로 재구성합니다.
문서 구성
공식 문서의 주요 섹션은 다음과 같습니다.
- Logging (macOS)
- Rolling diagnostics file log (Debug pane)
- Unified logging private data on macOS
- Enable for OpenClaw (ai.openclaw)
- Disable after debugging
- 관련 문서
상세 내용
Logging (macOS)
이 섹션의 세부 항목은 공식 문서 Logging (macOS)를 참고하세요.
Rolling diagnostics file log (Debug pane)
The macOS app logs through swift-log (unified logging by default) and can also write a rotating local file log for durable capture (DiagnosticsFileLog).
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
주요 항목:
- Enable: Debug pane -> Logs -> App logging -> "Write rolling diagnostics log (JSONL)" (off by default).
- Verbosity: Debug pane -> Logs -> App logging -> Verbosity picker.
- Location:
~/Library/Logs/OpenClaw/diagnostics.jsonl. - Rotation: rotates at 5 MB; up to 5 backups suffixed
.1....5(oldest dropped). - Clear: Debug pane -> Logs -> App logging -> "Clear" deletes the active file and all backups.
Unified logging private data on macOS
Unified logging redacts most payloads unless a subsystem opts into privacy -off. This is controlled by a plist in /Library/Preferences/Logging/Subsystems/ keyed by subsystem name. Only new log entries pick up the flag, so enable it before reproducing an issue. Background: macOS logging privacy shenanigans.
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
Enable for OpenClaw (ai.openclaw)
Write the plist to a temp file first, then install it atomically as root:
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
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
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. - This surface can include phone numbers and message bodies; keep the plist in place only while actively needed.
관련 문서
주요 항목:
- macOS app
- Gateway logging
실습 체크리스트
- 공식 문서와 로컬 버전을 대조합니다:
https://docs.openclaw.ai/platforms/mac/logging - 관련 CLI는
openclaw --help및 하위 명령--help로 옵션을 확인합니다. - 설정 변경 시
openclaw config/openclaw doctor로 유효성을 검사합니다. - Gateway·채널·플러그인 변경 후에는 필요 시 Gateway를 재시작합니다.
자주 쓰는 명령·설정 예시
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
관련 링크
이 가이드는 공식 문서를 한국어 학습용으로 재구성한 것입니다. 옵션 기본값·플래그 이름은 설치 버전에 따라 달라질 수 있습니다.