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

Interface LogFormatter

middleware/logger.go:63–65  ·  middleware/logger.go::LogFormatter

LogFormatter initiates the beginning of a new LogEntry per request. See DefaultLogFormatter for an example implementation.

Source from the content-addressed store, hash-verified

61// LogFormatter initiates the beginning of a new LogEntry per request.
62// See DefaultLogFormatter for an example implementation.
63type LogFormatter interface {
64 NewLogEntry(r *http.Request) LogEntry
65}
66
67// LogEntry records the final log when a request completes.
68// See defaultLogEntry for an example implementation.

Callers 1

RequestLoggerFunction · 0.65

Implementers 1

DefaultLogFormattermiddleware/logger.go

Calls

no outgoing calls

Tested by

no test coverage detected