Documentation ¶
Overview ¶
Package ctxlogger provides an htadaptor.Middleware that injects a given logger into context so that it can be recovered later in the stack for use.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(logger *slog.Logger) htadaptor.Middleware
New creates an htadaptor.Middleware that injects slog.Logger into request context so it can be recovered later using FromContext.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.