mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2024-11-23 14:46:45 +01:00
34 lines
674 B
Go
34 lines
674 B
Go
package logg
|
|
|
|
import "github.com/zerodha/logf"
|
|
|
|
type AsynqLogger struct {
|
|
Lo *logf.Logger
|
|
}
|
|
|
|
func AsynqCompatibleLogger(lo logf.Logger) AsynqLogger {
|
|
return AsynqLogger{
|
|
Lo: &lo,
|
|
}
|
|
}
|
|
|
|
func (l AsynqLogger) Debug(args ...interface{}) {
|
|
l.Lo.Debug("asynq: server", "msg", args[0])
|
|
}
|
|
|
|
func (l AsynqLogger) Info(args ...interface{}) {
|
|
l.Lo.Info("asynq: server", "msg", args[0])
|
|
}
|
|
|
|
func (l AsynqLogger) Warn(args ...interface{}) {
|
|
l.Lo.Warn("asynq: server", "msg", args[0])
|
|
}
|
|
|
|
func (l AsynqLogger) Error(args ...interface{}) {
|
|
l.Lo.Error("asynq: server", "msg", args[0])
|
|
}
|
|
|
|
func (l AsynqLogger) Fatal(args ...interface{}) {
|
|
l.Lo.Fatal("asynq: server", "msg", args[0])
|
|
}
|