Documentation
¶
Overview ¶
Package log provides a project-level charmbracelet/log logger for spin.
It is intended for diagnostic, warning, and error messages — not for styled user-facing success/info output, which remains in cmd/print.go. The default logger writes to stderr with colors enabled, no timestamps, and the info level.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Logger = log.NewWithOptions(os.Stderr, log.Options{ Level: log.InfoLevel, ReportTimestamp: false, })
Logger is the package-level logger used by spin. It writes to stderr and is intended for warnings, errors, and diagnostic output. Callers should prefer the Info/Warn/Error/Debug/Print helpers below.
var Stdout = log.NewWithOptions(os.Stdout, log.Options{ Level: log.InfoLevel, ReportTimestamp: false, })
Stdout is a secondary logger for user-facing informational output that should appear on stdout (e.g. success messages). It shares the same timestamp/level settings as Logger.
Functions ¶
Types ¶
This section is empty.