Raw protocol logs for debugging, written only when CLAUDE_BRIDGE_DEBUG=1.
Each transport writes one file, <base>/debug/<key>-<timestamp>.log, with every line it writes to stdin (prefixed >) and every line it reads from stdout (prefixed <). The directory has mode 0700 and each file 0600, because the lines hold conversation content.
Without the variable nothing is written; the session logs frame types only.
Summary
Functions
Closes the log file.
Returns true when env enables debug logs.
Opens a new log file for session key under base. Returns nil when the file cannot be created.
Appends one line. direction is :in for stdout lines and :out for stdin lines.
Types
@type t() :: File.io_device() | nil
Functions
@spec close(t()) :: :ok
Closes the log file.
Returns true when env enables debug logs.
Opens a new log file for session key under base. Returns nil when the file cannot be created.
Appends one line. direction is :in for stdout lines and :out for stdin lines.