Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCLILogger ¶
func ParseLogLevel ¶
ParseLogLevel converts a string log level to slog.Level. Defaults to slog.LevelInfo for unrecognized strings.
func SetDefaultCLILogger ¶
func SetDefaultCLILogger(level string)
func SetDefaultJSONLogger ¶ added in v0.19.1
func SetDefaultJSONLogger(level string)
Types ¶
type CLIHandler ¶
type CLIHandler struct {
// contains filtered or unexported fields
}
CLIHandler is a custom slog.Handler for CLI output.
func NewCLIHandler ¶
func NewCLIHandler(w io.Writer, level slog.Level) *CLIHandler
Click to show internal directories.
Click to hide internal directories.