# Functions
AccessLog is a simple access-log style logging middleware that will log all incoming request and response info.
AddLoggerToContext adds given logger to the context.Context and returns new context.
DefaultLogGetter defines default log getter for middleware.
FromContext will return current logger from the given context.Context object.
FromRequest will return current logger embedded in the given request object.
InContext is a middleware that will inject standard logger instance into the context which can be used for per-request logging.
NewLoggingResponseWriter creates new LoggingResponseWriter instance wrapped around net/http.ResponseWriter.
WithCallback sets callback for the logger.
WithHeaders adds list of headers that should be added to the logger.
WithLogger adds logger getter to be stored within the request's context.
# Structs
LoggingResponseWriter is a wrapper around ResponseWriter used to capture HTTP status code of responses.
# Type aliases
LogCallback defines function that can modify logger properties for all requests.
LogGetter is function that allows injecting custom logger into the middleware.
Option represents a logger option.