handler

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2026 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SentryConverter

func SentryConverter(
	addSource bool,
	replaceAttr func(groups []string, a slog.Attr) slog.Attr,
	loggerAttr []slog.Attr,
	groups []string,
	record *slog.Record,
	hub *sentry.Hub) *sentry.Event

Types

type EnrichSlogHandler

type EnrichSlogHandler struct {
	// contains filtered or unexported fields
}

func NewEnrichSlogHandler

func NewEnrichSlogHandler(handlers ...slog.Handler) *EnrichSlogHandler

func (*EnrichSlogHandler) Enabled

func (h *EnrichSlogHandler) Enabled(ctx context.Context, lvl slog.Level) bool

func (*EnrichSlogHandler) Handle

func (h *EnrichSlogHandler) Handle(ctx context.Context, r slog.Record) error

func (*EnrichSlogHandler) WithAttrs

func (h *EnrichSlogHandler) WithAttrs(attrs []slog.Attr) slog.Handler

func (*EnrichSlogHandler) WithGroup

func (h *EnrichSlogHandler) WithGroup(name string) slog.Handler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL