Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct { LogStart bool LogEnd bool LogLevel gomol.LogLevel FieldMethod string FieldPath string FieldStatus string FieldTimeMs string FieldRequestID string // contains filtered or unexported fields }
Logger is a Negroni middleware for logging requests with the gomol logging library
func NewLogger ¶
func NewLogger() *Logger
NewLogger will create a new Logger using the current default gomol logger base
func NewLoggerForBase ¶
NewLoggerForBase will create a new Logger using the provided gomol logger base
func (*Logger) ServeHTTP ¶
func (l *Logger) ServeHTTP(rw http.ResponseWriter, req *http.Request, next http.HandlerFunc)
Click to show internal directories.
Click to hide internal directories.