Documentation
¶
Overview ¶
Package log provides context-based structured logging.
The logger is injected into context at the CLI layer and extracted in pkg/ code via From. When no logger is present in the context, a no-op logger is returned. This design keeps logging local and injectable, allowing the slog backend to be replaced with a richer progress UI in the future without changing call sites.
Index ¶
Constants ¶
const LevelTrace = slog.Level(-8)
LevelTrace is a custom level below Debug for low-level diagnostics such as docker commands and probe retry attempts.
Variables ¶
This section is empty.
Functions ¶
func Warn ¶ added in v0.13.0
Warn reports a warning meant for the user, something that did not fail the operation but that its caller should know, such as a step that was skipped: to the function the context carries (WithWarn), or else, for a library caller that set none, to the context's logger at warn level.
Types ¶
This section is empty.