aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/go-redis/redis/internal/log.go
blob: fd14222eee719ff9019a3884227cf2428c8dec82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package internal

import (
	"fmt"
	"log"
)

var Logger *log.Logger

func Logf(s string, args ...interface{}) {
	if Logger == nil {
		return
	}
	Logger.Output(2, fmt.Sprintf(s, args...))
}