aboutsummaryrefslogtreecommitdiffstats
path: root/logger/loggers.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-02-12 01:49:00 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-02-12 01:49:00 +0800
commitdb24fb792cf0dab91bc85e79aecf6758349002a4 (patch)
tree7ca7a1540dbf7226b5812690a0133201095661e7 /logger/loggers.go
parent3d6fd601c5eec13480b6c736f6811b663a885766 (diff)
downloaddexon-db24fb792cf0dab91bc85e79aecf6758349002a4.tar.gz
dexon-db24fb792cf0dab91bc85e79aecf6758349002a4.tar.zst
dexon-db24fb792cf0dab91bc85e79aecf6758349002a4.zip
Move standard fields to LogEvent
Diffstat (limited to 'logger/loggers.go')
-rw-r--r--logger/loggers.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/logger/loggers.go b/logger/loggers.go
index fd2a01dfd..147b2b85f 100644
--- a/logger/loggers.go
+++ b/logger/loggers.go
@@ -114,13 +114,15 @@ func (logger *Logger) Fatalf(format string, v ...interface{}) {
os.Exit(0)
}
-type JsonLogger struct{}
+type JsonLogger struct {
+ Coinbase string
+}
func NewJsonLogger() *JsonLogger {
return &JsonLogger{}
}
-func (logger *JsonLogger) LogJson(v LogEvent) {
+func (logger *JsonLogger) LogJson(v JsonLog) {
msgname := v.EventName()
obj := map[string]interface{}{
msgname: v,