aboutsummaryrefslogtreecommitdiffstats
path: root/logger/loggers.go
diff options
context:
space:
mode:
Diffstat (limited to 'logger/loggers.go')
-rw-r--r--logger/loggers.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/logger/loggers.go b/logger/loggers.go
index 36bc38116..fd2a01dfd 100644
--- a/logger/loggers.go
+++ b/logger/loggers.go
@@ -120,7 +120,8 @@ func NewJsonLogger() *JsonLogger {
return &JsonLogger{}
}
-func (logger *JsonLogger) LogJson(msgname string, v interface{}) {
+func (logger *JsonLogger) LogJson(v LogEvent) {
+ msgname := v.EventName()
obj := map[string]interface{}{
msgname: v,
}