Documentation
¶
Overview ¶
Package logging provides slog.Handler decorators shared across the server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
Handler wraps an slog.Handler and attaches the request's trace ID.
func NewHandler ¶
NewHandler wraps next so every log record made via a *Context slog call automatically gets "traceId" attached.
Click to show internal directories.
Click to hide internal directories.