Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RequestLogger ¶
type RequestLogger struct{}
func (RequestLogger) NewLogEntry ¶
func (RequestLogger) NewLogEntry(r *http.Request) middleware.LogEntry
NewLogEntry creates an alternative log entry which is stored in the context with the key middleware.LogEntryCtxKey. This log entry is used inside chi's own middlewares: Recoverer, e.g.
The new log entry has some new fields which aren't really needed in handlers although could be used in the future.
type StructuredLoggerEntry ¶
func (*StructuredLoggerEntry) Panic ¶
func (l *StructuredLoggerEntry) Panic(v interface{}, stack []byte)
Click to show internal directories.
Click to hide internal directories.