Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHighlightHandler ¶
func NewHighlightHandler(options ...HighlightHandlerOption) slog.Handler
NewHighlightHandler creates a new HighlightHandler. Default level is LevelInfo.
Types ¶
type HighlightHandler ¶
type HighlightHandler struct {
// contains filtered or unexported fields
}
type HighlightHandlerOption ¶
type HighlightHandlerOption func(*HighlightHandler) error
func WithLevel ¶
func WithLevel(level slog.Leveler) HighlightHandlerOption
func WithLevelFunc ¶
func WithLevelFunc(levelFunc func() slog.Leveler) HighlightHandlerOption
Click to show internal directories.
Click to hide internal directories.