1
0
mirror of https://github.com/redis/go-redis.git synced 2025-09-05 20:24:00 +03:00

chore(log): add note related to logging and simple void logger

This commit is contained in:
Nedyalko Dyakov
2025-08-04 15:38:06 +03:00
parent 4dc03fc8c3
commit b62fe92276
2 changed files with 14 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ type Scanner = hscan.Scanner
const Nil = proto.Nil
// SetLogger set custom log
// Use with VoidLogger to disable logging.
func SetLogger(logger internal.Logging) {
internal.Logger = logger
}