Documentation
¶
Overview ¶
Package debuglog provides a process-wide structured debug-event sink used to diagnose daemon-mode routing decisions (session creation, descendant joins, ancestor-walk welds, trace-id mismatches, etc.).
The sink is off by default: L is a Nop logger and all call sites are effectively free. Callers enable it by calling Init with a file path — typically from a CLI flag (--debug-log) or PROCESS_TRACER_DEBUG_LOG env var. When enabled, every event is written as one JSON object per line, suitable for jq / spreadsheet analysis.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var L *zap.Logger = zap.NewNop()
L is the process-wide debug logger. Starts as a Nop; Init redirects it to a file. Zap's Nop core discards fields cheaply so call sites are safe to leave in hot paths.
Functions ¶
Types ¶
This section is empty.