From 51d07f79134d492de1589d743f03141635c0d6b5 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 14 Dec 2020 19:41:32 +0100 Subject: [PATCH] proxy: output JSON logs --- proxy/pkg/server/api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/proxy/pkg/server/api.go b/proxy/pkg/server/api.go index 4e26e561d..d8ebe6924 100644 --- a/proxy/pkg/server/api.go +++ b/proxy/pkg/server/api.go @@ -59,6 +59,7 @@ func getCommonOptions() *options.Options { } func doGlobalSetup(config map[string]interface{}) { + log.SetFormatter(&log.JSONFormatter{}) switch config[ConfigLogLevel].(string) { case "debug": log.SetLevel(log.DebugLevel)