Source File
log.go
Belonging Package
github.com/redis/go-redis/v9/internal
package internalimport ()type Logging interface {Printf(ctx context.Context, format string, v ...interface{})}type logger struct {log *log.Logger}func ( *logger) ( context.Context, string, ...interface{}) {_ = .log.Output(2, fmt.Sprintf(, ...))}// Logger calls Output to print to the stderr.// Arguments are handled in the manner of fmt.Print.var Logger Logging = &logger{log: log.New(os.Stderr, "redis: ", log.LstdFlags|log.Lshortfile),}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |