Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BridgeStandardLog ¶
BridgeStandardLog redirects the global standard log package to use the provided slog.Handler.
func NewCronLoggerAdapter ¶
func NewZapLoggerAdapter ¶
NewZapLoggerAdapter creates a zap.Logger that writes to the provided slog.Logger.
Types ¶
type SentryHandler ¶
type SentryHandler struct {
// contains filtered or unexported fields
}
SentryHandler wraps an existing slog.Handler and forwards logs with a specific level or higher to Sentry.
func NewSentryHandler ¶
func NewSentryHandler(minLevel slog.Level, next slog.Handler) *SentryHandler
NewSentryHandler creates a new SentryHandler that wraps the provided handler.
type TracingHandler ¶
type TracingHandler struct {
// contains filtered or unexported fields
}
TracingHandler is a slog.Handler that adds trace_id and span_id to logs if present in the context.
func NewTracingHandler ¶
func NewTracingHandler(next slog.Handler) *TracingHandler
Click to show internal directories.
Click to hide internal directories.