Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
Opts Opts
}
func (*Handler) Handle ¶
Handle formats the record as a and writes it to stdout. Output includes timestamp, level, message, attrs, and optional caller info. The context is ignored.
type Opts ¶
type Opts interface {
// GetLevel returns the minimum log level for output.
GetLevel() slog.Level
// IsCallerEnabled checks if caller information should be included for the given level.
IsCallerEnabled(level slog.Level) bool
// GetPadding returns the amount of padding to apply in log messages.
GetPadding() int
}
Opts defines the interface for retrieving handler configuration settings.