package
0.10.2
Repository: https://github.com/arquivei/foundationkit.git
Documentation: pkg.go.dev

# Functions

GetRequestMeta returns a Meta added in the context by the WithRequestMeta function.
MustNew calls New and panics in case of error.
New returns a new go-kit logging middleware with the given name and configuration.
NewDefaultConfig contains sane defaults to configure a new logging middleware.
WithRequestMeta returns a context the given metadata.

# Structs

Config is a struct that configures the behavior of a loggingmiddleware.

# Interfaces

LoggableEndpointRequest, if implemented, by the endpoint request type, will be used to enrich the log along with the EnrichLogWithRequest config.
LoggableEndpointResponse, if implemented, by the endpoint response type, will be used to enrich the log along with the EnrichLogWithResponse config.

# Type aliases

EnrichLogWithRequestFunc is a function that receives a zerolog Context and the request.
EnrichLogWithResponseFunc is a function that receives a zerolog Context and the response and error.
Meta is a map containing arbitrary metadata to be passed to the logging middleware.