Logs go to the console and to rolling files under Logs/ via
Karambolo.Extensions.Logging.File. The listening URL is
printed to the console on startup by default.
- File naming: a unique file per launch (
<launch>token), rolling daily (<date>) and at 10 MB (<counter>):ClaudeCodeOllamaProxy-<date>-<launch>-<counter>.log. Newest 3 files are kept (swept at startup; Karambolo has no native retention). - By default, high-level events log at
Information(model, detected mode, resolved working directory, effective Claude options, bridged tool calls, exceptions + how they were handled).
Set the minimum log level to Trace. The simplest switch (keeps ASP.NET/Kestrel quiet):
# environment variable
Logging__LogLevel__Default=Trace dotnet run --project ClaudeCodeOllamaProxy.Consoleor in appsettings.json set "Logging": { "LogLevel": { "Default": "Trace" } }.
In the tray app, use the Logging verbosity picker on the Logs tab (with a "Default" button to
restore Information). It applies immediately — no restart — to both the Logs tab and the files under
Logs/, and is persisted across launches. It sets Logging:LogLevel:Default through a mutable
configuration source, so Microsoft.AspNetCore stays pinned at Warning and Kestrel remains quiet
even at Trace.
The
claudeCLI's own--debugoutput is a separate setting — "Claude CLI debug output", the toggle directly below the verbosity picker (Claude.CliDebuginappsettings.json). Raising verbosity toTraceno longer turns it on as a side effect.
Levels:
- Information (default): per-request model/mode/effort/working-dir, effective Claude options, each bridged tool_call name + id, tool-result sizes, client disconnects (HTTP 499), exceptions.
- Debug: the system prompt and prompt sent to Claude, bridged tool-call arguments, and
tool-result content (all truncated). Set
Logging__LogLevel__Default=Debugfor these. - Trace (everything):
- HTTP requests and responses (incl. streamed SSE/NDJSON chunks) — category
ClaudeCodeOllamaProxy.Wire. Bodies/chunks are capped atWire:MaxBytes(default 1 MB, enough for Copilot's full system prompt; set0for unlimited, or a small value to truncate). - The claude CLI command line (
Starting CLI: …/claude.exe --output-format stream-json …) and CLI stdout — categoryClaude.AgentSdk(its transport logs the spawn command atDebug). - CLI stdin/stdout/stderr as the proxy sees them — category
ClaudeCodeOllamaProxy.ClaudeCli. (Every chat path uses a bidirectional session, sending the prompt over stdin, so there is always a stdin stream.) The CLI's own--debugdiagnostics arrive on stderr under this category whenClaude.CliDebugis enabled.
- HTTP requests and responses (incl. streamed SSE/NDJSON chunks) — category
To raise just one area instead of everything, set that category, e.g.
Logging__LogLevel__ClaudeCodeOllamaProxy=Trace (proxy wire + CLI I/O + options) or
Logging__LogLevel__Claude.AgentSdk=Debug (CLI command line). Microsoft.AspNetCore stays at
Warning regardless, so Kestrel noise is suppressed.