Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// Opts defines configuration options for log formatting and behavior.
Opts *opts.Options
// W is the output destination for log entries.
W io.Writer
}
Handler implements slog.Handler and writes formatted log records.
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.