Documentation ¶
Index ¶
- type CallbackFunc
- type Handler
- func (h *Handler) DeregisterContextCallback(callbackKey string)
- func (h *Handler) Enabled(ctx context.Context, level slog.Level) bool
- func (h *Handler) Handle(ctx context.Context, record slog.Record) error
- func (h *Handler) RegisterContextCallback(callback CallbackFunc, callbackKey string) error
- func (h *Handler) WithAttrs(attrs []slog.Attr) slog.Handler
- func (h *Handler) WithGroup(name string) slog.Handler
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
}
func (*Handler) DeregisterContextCallback ¶
func (*Handler) RegisterContextCallback ¶
func (h *Handler) RegisterContextCallback(callback CallbackFunc, callbackKey string) error
Click to show internal directories.
Click to hide internal directories.