Documentation
¶
Overview ¶
Package log provides structured logging with INFO, DEBUG, and TRACE levels. DEBUG is visible by default; TRACE requires explicit opt-in.
Index ¶
- func Debug(format string, args ...interface{})
- func DryRunPrefix() string
- func EnableTrace()
- func Error(format string, args ...interface{})
- func Info(format string, args ...interface{})
- func Section(title string)
- func SetColors(enabled bool)
- func SetLevel(l Level)
- func SetOutput(w io.Writer)
- func Trace(format string, args ...interface{})
- func Warn(format string, args ...interface{})
- type Level
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(format string, args ...interface{})
Debug logs at DEBUG level - state values, decision reasoning, paths taken.
func DryRunPrefix ¶
func DryRunPrefix() string
DryRunPrefix returns a prefix for dry-run mode messages.
func Error ¶
func Error(format string, args ...interface{})
Error logs an error message (always visible).
func Info ¶
func Info(format string, args ...interface{})
Info logs at INFO level - key actions like "promoting X to Y".
Types ¶
Click to show internal directories.
Click to hide internal directories.