aboutsummaryrefslogtreecommitdiffstats
path: root/logger/loggers.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-02-11 19:45:41 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-02-11 19:45:41 +0800
commit3d6fd601c5eec13480b6c736f6811b663a885766 (patch)
treee0e396a40a57f077fb678b9f3ec5c4464a21a0ce /logger/loggers.go
parentd53e5646ecfce75790fea45a1ee552494ef88668 (diff)
downloaddexon-3d6fd601c5eec13480b6c736f6811b663a885766.tar
dexon-3d6fd601c5eec13480b6c736f6811b663a885766.tar.gz
dexon-3d6fd601c5eec13480b6c736f6811b663a885766.tar.bz2
dexon-3d6fd601c5eec13480b6c736f6811b663a885766.tar.lz
dexon-3d6fd601c5eec13480b6c736f6811b663a885766.tar.xz
dexon-3d6fd601c5eec13480b6c736f6811b663a885766.tar.zst
dexon-3d6fd601c5eec13480b6c736f6811b663a885766.zip
Move event names within each object
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,
}