MCPcopy
hub / github.com/redis/go-redis / VoidLogger

Struct VoidLogger

logging/logging.go:24–24  ·  view source on GitHub ↗

VoidLogger is a logger that does nothing. Used to disable logging and thus speed up the library.

Source from the content-addressed store, hash-verified

22// VoidLogger is a logger that does nothing.
23// Used to disable logging and thus speed up the library.
24type VoidLogger struct{}
25
26func (v *VoidLogger) Printf(_ context.Context, _ string, _ ...interface{}) {
27 // do nothing

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected