Closed thomasLeclaire closed 4 months ago
Hello!
Current logging of Kwatch use logrus thirdparty which send log to a default formatting logfmt when exported.
Could be cool to be able to choose this format.
in particular when running on GKE, logs are all considered as ERROR :
not sure how exactly implement this but such config should do the job to allow GKE to auto map stuffs :
logrus.SetFormatter(&log.JSONFormatter{ FieldMap: logrus.FieldMap{ logrus.FieldKeyTime: "time", logrus.FieldKeyLevel: "severity", logrus.FieldKeyMsg: "message", }, })
@thomasLeclaire Released on v0.9.0 🎉
Hello!
Current logging of Kwatch use logrus thirdparty which send log to a default formatting logfmt when exported.
Could be cool to be able to choose this format.
in particular when running on GKE, logs are all considered as ERROR :
not sure how exactly implement this but such config should do the job to allow GKE to auto map stuffs :