cic-custodial/pkg/logg/goredis.go

22 lines
345 B
Go
Raw Normal View History

2022-11-30 10:51:24 +01:00
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)
}