Documentation ¶
Overview ¶
Package logger provides a logger middleware to log the http request.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Collect is used to collect the extra key-value attributes if set. // // Default: nil Collect func(w http.ResponseWriter, r *http.Request, append func(...slog.Attr)) // Enabled is used to decide whether to log the request if set. // // Default: nil Enabled func(*http.Request) bool )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.