mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2024-12-23 02:07:32 +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)
|
||
|
}
|