grafana/pkg/services/ngalert/notifier/log.go
Yuri Tseretyan f0cabe14d5
Alerting: import Grafana alerting package and update usages (#60490)
* update remaining notifiers to use alerting package
2022-12-19 10:53:58 -05:00

20 lines
421 B
Go

package notifier
import (
"github.com/grafana/alerting/alerting/notifier/channels"
"github.com/grafana/grafana/pkg/infra/log"
)
var LoggerFactory channels.LoggerFactory = func(ctx ...interface{}) channels.Logger {
return &logWrapper{log.New(ctx...)}
}
type logWrapper struct {
*log.ConcreteLogger
}
func (l logWrapper) New(ctx ...interface{}) channels.Logger {
return logWrapper{l.ConcreteLogger.New(ctx...)}
}