add timestamp to kitlog
This commit is contained in:
parent
5ea6a8b1a1
commit
6c0524f3de
|
@ -14,6 +14,7 @@ type GoKitIOLogger struct {
|
||||||
|
|
||||||
func NewGoKitIOLogger(out io.Writer) Logger {
|
func NewGoKitIOLogger(out io.Writer) Logger {
|
||||||
kl := kitlog.NewJSONLogger(out)
|
kl := kitlog.NewJSONLogger(out)
|
||||||
|
kl = kitlog.With(kl, "time", kitlog.DefaultTimestampUTC)
|
||||||
|
|
||||||
return &GoKitIOLogger{
|
return &GoKitIOLogger{
|
||||||
fields: make(Fields),
|
fields: make(Fields),
|
||||||
|
|
Loading…
Reference in New Issue