Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*config)
func WithAdditionalFieldExtractor ¶
func WithAdditionalFieldExtractor(extractor AdditionalFieldExtractor) Option
WithAdditionalFieldExtractor takes a function that will be called on every request and the returned fields will be added to the log entry.
func WithFilter ¶
WithFilter adds a filter to the list of filters used by the middleware. If any filter indicates to exclude a request then the request will not be logged. All filters must allow a request to be logged. If no filters are provided, then all requests are logged.
Click to show internal directories.
Click to hide internal directories.