Documentation
¶
Overview ¶
Package accesslog provides a middleware that logs every request.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNilOption = errors.New("option cannot be nil")
ErrNilOption is returned when an option is nil.
Functions ¶
func New ¶
func New(options ...func(*Handler) error) (defs.Middleware, error)
New generates a new access logging middleware.
func WithLogLevel ¶
WithLogLevel configures the log level to use with the logger.
Types ¶
Click to show internal directories.
Click to hide internal directories.