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

Function NewLoggingHook

maintnotifications/hooks.go:58–60  ·  view source on GitHub ↗

NewLoggingHook creates a new logging hook with the specified log level. Log levels: 0=Error, 1=Warn, 2=Info, 3=Debug

(logLevel int)

Source from the content-addressed store, hash-verified

56// NewLoggingHook creates a new logging hook with the specified log level.
57// Log levels: 0=Error, 1=Warn, 2=Info, 3=Debug
58func NewLoggingHook(logLevel int) *LoggingHook {
59 return &LoggingHook{LogLevel: logLevel}
60}

Calls

no outgoing calls