cic-custodial/pkg/logg/goredis.go
2022-11-30 09:51:24 +00:00

22 lines
345 B
Go

package logg
import (
"context"
"github.com/zerodha/logf"
)
type RedisLogg struct {
logg *logf.Logger
}
func NewRedisTraceLogg(lo logf.Logger) RedisLogg {
return RedisLogg{
logg: &lo,
}
}
func (l RedisLogg) Printf(ctx context.Context, format string, v ...interface{}) {
l.logg.Debug("redis", "debug", "format", format, "data", v)
}