Documentation
¶
Overview ¶
Package logger provides CLI logging with colored output using slog.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLIHandler ¶
CLIHandler implements slog.Handler with colored output for CLI applications.
func NewCLIHandlerWithOptions ¶
func NewCLIHandlerWithOptions( out io.Writer, opts slog.HandlerOptions, ) *CLIHandler
NewCLIHandlerWithOptions creates a CLIHandler with the specified handler options.
func NewDefaultCLIHandler ¶
func NewDefaultCLIHandler( out io.Writer, ) *CLIHandler
NewDefaultCLIHandler creates a CLIHandler with default options.
func NewDefaultCLIHandlerWithVerbosity ¶
func NewDefaultCLIHandlerWithVerbosity( out io.Writer, verboseLevel slog.Level, ) *CLIHandler
NewDefaultCLIHandlerWithVerbosity creates a CLIHandler with a specific verbosity level.
Click to show internal directories.
Click to hide internal directories.