Documentation
¶
Overview ¶
Package logging provides helper functions to use a structured logger.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJsonLogger ¶
NewJsonLogger creates a new structured logger in JSON format.
func WithLogging ¶ added in v0.1.93
func WithLogging(logger *slog.Logger, next http.HandlerFunc) http.HandlerFunc
WithLogging logs the request with method, path and duration.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.