mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2024-11-22 06:16:45 +01:00
22 lines
345 B
Go
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)
|
|
}
|