Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggingMiddleware ¶
func LoggingMiddleware(next http.Handler, le *logrus.Entry, opts LoggingMiddlewareOpts) http.Handler
LoggingMiddleware logs incoming requests and response status codes using logrus.
Types ¶
type LoggingMiddlewareOpts ¶ added in v0.14.2
type LoggingMiddlewareOpts struct { // UserAgent includes user agent in logs. UserAgent bool }
LoggingMiddlewareOpts are opts passed to LoggingMiddleware.
Click to show internal directories.
Click to hide internal directories.