package
Version:
v1.1.6
Opens a new window with list of versions in this module.
Published: Jan 8, 2019
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 32
Opens a new window with list of known importers.
Documentation
¶
Logger returns default logger middleware
Flag type
const (
All Flag = iota
User
Body
None
)
logger flags enum
type Middleware struct {
}
Middleware for logging rest requests
New makes rest Logger with given options
func (*Middleware) Handler ¶
Handler middleware prints http log
Option func type
Flags functional option defines output modes
IPfn functional option defines ip masking function.
Log functional option defines loging backend.
MaxBodySize functional option defines the largest body size to log.
Prefix functional option defines log line prefix.
UserFn functional option defines user name function.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.