MCPcopy Index your code
hub / github.com/dreamsofcode-io/zenstats / Logging

Function Logging

internal/middleware/logging.go:41–45  ·  view source on GitHub ↗

Logging middleware is used to write log information out to the console on each request/response.

(logger *slog.Logger)

Source from the content-addressed store, hash-verified

39// Logging middleware is used to write log information out to the console
40// on each request/response.
41func Logging(logger *slog.Logger) Middleware {
42 return func(next http.Handler) http.Handler {
43 return logging(logger, next)
44 }
45}

Callers 1

loadRoutesMethod · 0.92

Calls 1

loggingFunction · 0.85

Tested by

no test coverage detected