From 25f3bb4029cb94b57637921c9375169bac62185b Mon Sep 17 00:00:00 2001 From: Roxana Meixner Date: Wed, 8 Jun 2022 14:38:22 +0200 Subject: [PATCH] CPI-769 use json field key "message" for log messages --- main/main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main/main.go b/main/main.go index 5f542f45..e4ea0f4a 100644 --- a/main/main.go +++ b/main/main.go @@ -67,7 +67,11 @@ func main() { } } - log.SetFormatter(&log.JSONFormatter{}) + log.SetFormatter(&log.JSONFormatter{ + FieldMap: log.FieldMap{ + log.FieldKeyMsg: "message", + }, + }) log.Printf("UBIRCH client (version=%s, revision=%s)", Version, Revision) auditlogger.SetServiceName(serviceName)