[SEBA-359] Use more accurate timestamp format
Change-Id: I117e41e7cd6180c01d6adc60c72a658982fb57a6
diff --git a/common/logger/logger.go b/common/logger/logger.go
index bd17385..444cabb 100644
--- a/common/logger/logger.go
+++ b/common/logger/logger.go
@@ -19,6 +19,7 @@
import (
lkh "github.com/gfremex/logrus-kafka-hook"
log "github.com/sirupsen/logrus"
+ "time"
)
var (
@@ -42,6 +43,7 @@
"kh",
[]log.Level{log.DebugLevel, log.InfoLevel, log.WarnLevel, log.ErrorLevel},
&log.JSONFormatter{
+ TimestampFormat: time.RFC3339Nano,
FieldMap: log.FieldMap{
log.FieldKeyTime: "@timestamp",
log.FieldKeyLevel: "levelname",