Documentation
¶
Index ¶
- type HookHandler
- func (h *HookHandler) Enabled(ctx context.Context, level slog.Level) bool
- func (h *HookHandler) Handle(ctx context.Context, r slog.Record) error
- func (h *HookHandler) SetLevel(level slog.Level)
- func (h *HookHandler) WithAttrs(attrs []slog.Attr) slog.Handler
- func (h *HookHandler) WithGroup(name string) slog.Handler
- type HookHandlerOptions
- type Level
- type Record
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HookHandler ¶
type HookHandler struct {
// contains filtered or unexported fields
}
func NewHookHandler ¶
func NewHookHandler(opts *HookHandlerOptions) *HookHandler
func (*HookHandler) SetLevel ¶
func (h *HookHandler) SetLevel(level slog.Level)
type HookHandlerOptions ¶
Click to show internal directories.
Click to hide internal directories.