Documentation
¶
Overview ¶
ABOUTME: Injectable diagnostic sink for tracker's library packages (#449). ABOUTME: Defaults to a no-op so embedders get silence unless they inject a logger.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Errorf ¶
Errorf logs a formatted error-level diagnostic to the active sink. Note this does NOT swallow an error return — call sites that previously logged context alongside returning/handling an error keep doing so; only the sink changes.
func Logger ¶
Logger returns the active diagnostic sink. It never returns nil — when no logger has been injected it returns the no-op sink, so callers can log unconditionally without a nil check.
func SetLogger ¶
SetLogger installs the process-wide diagnostic sink used by tracker's library packages (pipeline, handlers, llm, root). Passing nil resets to the no-op sink. This is process-wide state, not per-engine: threading a logger through every free function (llm.EstimateCost, condition evaluation) is not feasible, so the library funnels all diagnostics through one injectable sink. tracker.Config.Logger sets this during engine construction; the CLI sets it once at startup to preserve its terminal output.
Types ¶
This section is empty.