MCPcopy
hub / github.com/go-chi/chi / LogEntry

Interface LogEntry

middleware/logger.go:69–72  ·  middleware/logger.go::LogEntry

LogEntry records the final log when a request completes. See defaultLogEntry for an example implementation.

Source from the content-addressed store, hash-verified

67// LogEntry records the final log when a request completes.
68// See defaultLogEntry for an example implementation.
69type LogEntry interface {
70 Write(status, bytes int, header http.Header, elapsed time.Duration, extra interface{})
71 Panic(v interface{}, stack []byte)
72}
73
74// GetLogEntry returns the in-context LogEntry for a request.
75func GetLogEntry(r *http.Request) LogEntry {

Callers 9

RequestLoggerFunction · 0.95
methodNotAllowedHandlerFunction · 0.65
TestMuxBasicFunction · 0.65
TestMuxMountsFunction · 0.65
TestMuxPlainFunction · 0.65
TestMuxTrailingSlashFunction · 0.65
TestMuxNestedNotFoundFunction · 0.65
TestMethodNotAllowedFunction · 0.65
RecovererFunction · 0.65

Implementers 1

defaultLogEntrymiddleware/logger.go

Calls

no outgoing calls

Tested by

no test coverage detected