MCPcopy
hub / github.com/grafana/dskit / Log

Struct Log

middleware/logging.go:23–30  ·  middleware/logging.go::Log

Log middleware logs http requests

Source from the content-addressed store, hash-verified

21
22// Log middleware logs http requests
23type Log struct {
24 Log log.Logger
25 DisableRequestSuccessLog bool
26 LogRequestHeaders bool // LogRequestHeaders true -> dump http headers at debug log level
27 LogRequestAtInfoLevel bool // LogRequestAtInfoLevel true -> log requests at info log level
28 SourceIPs *SourceIPExtractor
29 HTTPHeadersToExclude map[string]bool
30}
31
32var AlwaysExcludedHeaders = map[string]bool{
33 "Cookie": true,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected