Documentation ¶
Overview ¶
Package log defines a middleware to handle response writing errors as well as log each request and its response if enabled.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func New ¶
func New(settings Settings) (middleware *Middleware, err error)
func (*Middleware) Stop ¶
func (m *Middleware) Stop() (err error)
func (*Middleware) String ¶
func (m *Middleware) String() string
type Settings ¶
type Settings struct { // Logger is the logger to use. // It defaults to a No-op implementation. Logger Logger }
func (*Settings) SetDefaults ¶
func (s *Settings) SetDefaults()
func (*Settings) ToLinesNode ¶
Click to show internal directories.
Click to hide internal directories.