redis/internal/log.go

16 lines
188 B
Go
Raw Normal View History

2016-04-09 14:52:01 +03:00
package internal
import (
"fmt"
"log"
)
2016-06-05 11:05:50 +03:00
var Logger *log.Logger
2016-04-09 14:52:01 +03:00
2016-06-05 11:05:50 +03:00
func Logf(s string, args ...interface{}) {
if Logger == nil {
2016-04-09 14:52:01 +03:00
return
}
Logger.Output(2, fmt.Sprintf(s, args...))
}