MCPcopy Create free account
hub / github.com/corestoreio/pkg / WithAccessLog

Function WithAccessLog

net/accesslog/access_log.go:54–102  ·  view source on GitHub ↗

WithAccessLog is a middleware that logs all access requests performed on the sub handler and uses github.com/rs/xstats for collecting stats. Default logger uses black hole engine. Log level must be set to info. Logger must be thread safe.

(x xstats.XStater, l ...log.Logger)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 11

ResponseStatusFunction · 0.85
ServeHTTPMethod · 0.80
TimingMethod · 0.80
HistogramMethod · 0.80
StatusMethod · 0.65
BytesWrittenMethod · 0.65
StringMethod · 0.65
GetMethod · 0.65
ContextMethod · 0.45
IntMethod · 0.45
DurationMethod · 0.45

Tested by

no test coverage detected