Migrating to unified logger interface
This commit is contained in:
parent
1d19526629
commit
10633925a8
|
@ -14,13 +14,13 @@ type EventReceiver struct {
|
||||||
|
|
||||||
// Event receives a simple notification when various events occur
|
// Event receives a simple notification when various events occur
|
||||||
func (n *EventReceiver) Event(eventName string) {
|
func (n *EventReceiver) Event(eventName string) {
|
||||||
n.logger.WithCallDepth(3).V(1).Info(eventName)
|
n.logger.WithCallDepth(2).V(1).Info(eventName)
|
||||||
}
|
}
|
||||||
|
|
||||||
// EventKv receives a notification when various events occur along with
|
// EventKv receives a notification when various events occur along with
|
||||||
// optional key/value data
|
// optional key/value data
|
||||||
func (n *EventReceiver) EventKv(eventName string, kvs map[string]string) {
|
func (n *EventReceiver) EventKv(eventName string, kvs map[string]string) {
|
||||||
n.logger.WithCallDepth(3).V(1).Info(eventName)
|
n.logger.WithCallDepth(2).V(1).Info(eventName)
|
||||||
}
|
}
|
||||||
|
|
||||||
// EventErr receives a notification of an error if one occurs
|
// EventErr receives a notification of an error if one occurs
|
||||||
|
|
Loading…
Reference in New Issue