Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallerMiddleware ¶
func CallerMiddleware(ctx context.Context, record slog.Record, next func(context.Context, slog.Record) error) error
CallerMiddleware adds source file and line information to log records.
func ErrorFormattingMiddleware ¶
func ErrorFormattingMiddleware( ctx context.Context, record slog.Record, next func(context.Context, slog.Record) error, ) error
ErrorFormattingMiddleware converts error attributes into structured groups with "type" and "message" fields.
func NewGDPRMiddleware ¶
func NewGDPRMiddleware() slogmulti.Middleware
NewGDPRMiddleware returns a slog middleware that masks common PII fields.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.