coderClaw

Logging

For a user-facing overview (CLI + Control UI + config), see /logging.

CoderClaw has two log “surfaces”:

File-based logger

The file format is one JSON object per line.

The Control UI Logs tab tails this file via the gateway (logs.tail). CLI can do the same:

coderclaw logs --follow

Verbose vs. log levels

Console capture

The CLI captures console.log/info/warn/error/debug/trace and writes them to file logs, while still printing to stdout/stderr.

You can tune console verbosity independently via:

Tool summary redaction

Verbose tool summaries (e.g. 🛠️ Exec: ...) can mask sensitive tokens before they hit the console stream. This is tools-only and does not alter file logs.

Gateway WebSocket logs

The gateway prints WebSocket protocol logs in two modes:

WS log style

coderclaw gateway supports a per-gateway style switch:

Examples:

# optimized (only errors/slow)
coderclaw gateway

# show all WS traffic (paired)
coderclaw gateway --verbose --ws-log compact

# show all WS traffic (full meta)
coderclaw gateway --verbose --ws-log full

Console formatting (subsystem logging)

The console formatter is TTY-aware and prints consistent, prefixed lines. Subsystem loggers keep output grouped and scannable.

Behavior:

This keeps existing file logs stable while making interactive output scannable.