package
1.11.9
Repository: https://github.com/xmidt-org/webpa-common.git
Documentation: pkg.go.dev

# Functions

Header returns a logger func that extracts the value of a header and inserts it as the value of a logging key.
PathVariable returns a LoggerFunc that extracts the value of a gorilla/mux path variable and inserts it into the value of a logging key.
RemoteAddr returns the contextual logging key for an HTTP request's remote address, as filled in by the enclosing http.Server.
RequestInfo is a LoggerFunc that adds the request information described by logging keys in this package.
RequestMethodKey returns the contextual logging key for an HTTP request's method.
RequestURIKey returns the contextual logging key for an HTTP request's unmodified URI.
SetLogger produces a go-kit RequestFunc that inserts a go-kit Logger into the context.

# Type aliases

LoggerFunc is a strategy for adding key/value pairs (possibly) based on an HTTP request.