Caricamento in corso...
Caricamento in corso...
Last synced: Today, 22:00
Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.
Use this file to discover all available pages before exploring further.
For a user-facing overview (CLI + Control UI + config), see /logging.
OpenClaw has two log “surfaces”:
/tmp/openclaw/openclaw-YYYY-MM-DD.loglogging.maxFileBytes~/.openclaw/openclaw.jsonlogging.filelogging.levelThe file format is one JSON object per line.
The Control UI Logs tab tails this file via the gateway (
logs.tailbashopenclaw logs --follow
Verbose vs. log levels
logging.level--verboselogging.leveldebugtraceThe CLI captures
console.log/info/warn/error/debug/traceYou can tune console verbosity independently via:
logging.consoleLevelinfologging.consoleStyleprettycompactjsonOpenClaw can mask sensitive tokens before log or transcript output leaves the process. This logging redaction policy is applied at console, file-log, OTLP log-record, and session transcript text sinks, so matching secret values are masked before JSONL lines or messages are written to disk.
logging.redactSensitiveofftoolstoolslogging.redactPatternsgi/pattern/flags***Some safety boundaries always redact regardless of
logging.redactSensitivesessions_historylogging.redactPatternsredactSensitive: "off"The gateway prints WebSocket protocol logs in two modes:
--verboseok=false>= 50ms--verboseopenclaw gateway--ws-log auto--ws-log compact--ws-log full--compact--ws-log compactExamples:
bash# optimized (only errors/slow) openclaw gateway # show all WS traffic (paired) openclaw gateway --verbose --ws-log compact # show all WS traffic (full meta) openclaw gateway --verbose --ws-log full
The console formatter is TTY-aware and prints consistent, prefixed lines. Subsystem loggers keep output grouped and scannable.
Behavior:
[gateway][canvas][tailscale]TERMCOLORTERMTERM_PROGRAMNO_COLORgateway/channels/whatsapp/outbound{ subsystem }logRaw()pretty | compact | jsonlogging.leveldebugtracedebug--verboseThis keeps existing file logs stable while making interactive output scannable.
© 2024 TaskFlow Mirror
Powered by TaskFlow Sync Engine