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

Function Disable

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

Disable disables logging by setting the internal logger to a void logger. This can be used to speed up the library if logging is not needed. It will override any custom logger that was set before and set the VoidLogger.

()

Source from the content-addressed store, hash-verified

31// This can be used to speed up the library if logging is not needed.
32// It will override any custom logger that was set before and set the VoidLogger.
33func Disable() {
34 internal.Logger = &VoidLogger{}
35}
36
37// Enable enables logging by setting the internal logger to the default logger.
38// This is the default behavior.

Callers 3

initFunction · 0.92
main_test.goFile · 0.92
initFunction · 0.92

Calls

no outgoing calls

Tested by 2

initFunction · 0.74
initFunction · 0.74