Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler wraps an slog.Handler to add trace support.
func NewHandler ¶
NewHandler returns a TraceHandler.
type Option ¶
type Option func(h *Handler)
Option applies optional configuration for a Handler.
func WithMinLevel ¶
WithMinLevel sets the minimum level on which log messages are handled.
func WithStackTrace ¶
WithStackTrace adds a stack trace to traced log messages.
Click to show internal directories.
Click to hide internal directories.