Diagnostics flags
기준일: 2026-07-26
공식 기준: Diagnostics flags
Diagnostics flags 문서는 OpenClaw 공식 문서(diagnostics/flags)를 한국어로 정리한 가이드입니다. Diagnostics flags for targeted debug logs 명령·설정 키·코드 예시는 공식 문서를 그대로 보존하며, 해석과 절차 안내는 한국어로 제공합니다. 최종 동작은 설치된 CLI 버전과 공식 원문을 확인하세요.
핵심 요약
Diagnostics flags for targeted debug logs
한국어 가이드 범위: diagnostics/flags 경로의 설정·명령·제약·예시를 학습용으로 재구성합니다.
문서 구성
공식 문서의 주요 섹션은 다음과 같습니다.
- 동작 방식
- Known flags
- Enable via config
- Env override (one-off)
- Profiler flags
- Timeline artifacts
- Where logs go
- Extract logs
- Named profile example:
- 참고
- 관련 문서
상세 내용
본문
Diagnostics flags turn on extra logging for one subsystem without raising logging.level globally. A flag has no effect unless a subsystem checks it.
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
동작 방식
config plus the OPENCLAW_DIAGNOSTICS env override, deduped and lowercased.
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
주요 항목:
- Flags are case-insensitive strings, resolved from
diagnostics.flagsin name.*matchesnameitself and anything undername.(for example*orallenables every flag.- Restart the gateway after changing
diagnostics.flagsin config; it is not
Known flags
| Flag | Enables |
|---|---|
telegram.http |
Telegram Bot API HTTP error logging |
brave.http |
Brave Search request/response/cache logging |
profiler |
Reply-stage profiler and Codex app-server profiler (both) |
reply.profiler |
Reply-stage profiler only |
codex.profiler |
Codex app-server profiler only |
health |
Gateway health probe/account/binding debug details |
ingress.timing |
Session load, model selection, and model catalog timings |
plugin.load-profile |
Synchronous plugin module-load timings |
timeline |
Structured JSONL timeline artifact (see below) |
Enable via config
{
"diagnostics": {
"flags": ["telegram.http"]
}
}
{
"diagnostics": {
"flags": ["telegram.http", "brave.http", "gateway.*"]
}
}
Env override (one-off)
Values split on commas or whitespace. Special values:
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
| Value | Effect |
|---|---|
0, false, off, none |
Disable all flags, overriding config too |
1, true, all, * |
Enable every flag |
OPENCLAW_DIAGNOSTICS=telegram.http,brave.http
Profiler flags
Profiler flags gate lightweight timing spans; they add no overhead when off.
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
OPENCLAW_DIAGNOSTICS=profiler openclaw gateway run
OPENCLAW_DIAGNOSTICS=reply.profiler openclaw gateway run
OPENCLAW_DIAGNOSTICS=codex.profiler openclaw gateway run
{
"diagnostics": {
"flags": ["reply.profiler", "codex.profiler"]
}
}
Timeline artifacts
The timeline flag (alias: diagnostics.timeline) writes structured startup and runtime timing events as JSONL, for external QA harnesses:
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
OPENCLAW_DIAGNOSTICS=timeline \
OPENCLAW_DIAGNOSTICS_TIMELINE_PATH=/tmp/openclaw-timeline.jsonl \
openclaw gateway run
{
"diagnostics": {
"flags": ["timeline"]
}
}
Where logs go
Flags emit logs into the standard diagnostics log file. By default:
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
/tmp/openclaw/openclaw-YYYY-MM-DD.log
Extract logs
Read the active profile's latest log file:
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
Named profile example:
openclaw --profile work logs --plain bash openclaw logs --plain --limit 5000 | rg "telegram http error" bash openclaw logs --plain --limit 5000 | rg "brave http" bash openclaw logs --follow --plain | rg "telegram http error" ```
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
Filter for Telegram HTTP diagnostics:
Filter for Brave Search HTTP diagnostics:
Or tail while reproducing:
참고
status/timing, and cache hit/miss/write events. It does not log the API key (sent as a request header) or response bodies, but search queries can be sensitive.
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
주요 항목:
- If
logging.levelis set higher thanwarn, flag-gated logs may be brave.httplogs Brave Search request URLs/query params, response- Flags are safe to leave enabled; they only affect log volume for the
- Use /logging to change log destinations, levels, and redaction.
관련 문서
주요 항목:
- Gateway diagnostics
- Gateway troubleshooting
실습 체크리스트
- 공식 문서와 로컬 버전을 대조합니다:
https://docs.openclaw.ai/diagnostics/flags - 관련 CLI는
openclaw --help및 하위 명령--help로 옵션을 확인합니다. - 설정 변경 시
openclaw config/openclaw doctor로 유효성을 검사합니다. - Gateway·채널·플러그인 변경 후에는 필요 시 Gateway를 재시작합니다.
자주 쓰는 명령·설정 예시
{
"diagnostics": {
"flags": ["telegram.http"]
}
}
{
"diagnostics": {
"flags": ["telegram.http", "brave.http", "gateway.*"]
}
}
OPENCLAW_DIAGNOSTICS=telegram.http,brave.http
OPENCLAW_DIAGNOSTICS=profiler openclaw gateway run
OPENCLAW_DIAGNOSTICS=reply.profiler openclaw gateway run
OPENCLAW_DIAGNOSTICS=codex.profiler openclaw gateway run
관련 링크
- 공식 원문: diagnostics/flags
- OpenClaw 문서 홈
이 가이드는 공식 문서를 한국어 학습용으로 재구성한 것입니다. 옵션 기본값·플래그 이름은 설치 버전에 따라 달라질 수 있습니다.