MCPcopy
hub / github.com/caddyserver/caddy / logTrace

Method logTrace

modules/caddyhttp/server.go:833–840  ·  view source on GitHub ↗

logTrace will log that this middleware handler is being invoked. It emits at DEBUG level.

(mh MiddlewareHandler)

Source from the content-addressed store, hash-verified

831// logTrace will log that this middleware handler is being invoked.
832// It emits at DEBUG level.
833func (s *Server) logTrace(mh MiddlewareHandler) {
834 if s.Logs == nil || !s.Logs.Trace {
835 return
836 }
837 if c := s.traceLogger.Check(zapcore.DebugLevel, caddy.GetModuleName(mh)); c != nil {
838 c.Write(zap.Any("module", mh))
839 }
840}
841
842// logRequest logs the request to access logs, unless skipped.
843func (s *Server) logRequest(

Callers 1

wrapMiddlewareFunction · 0.80

Calls 2

CheckMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected