From 10ecefbb3e3fca677bab7f133fcc087a2be8a075 Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Mon, 18 Jul 2022 14:10:06 -0400 Subject: [PATCH] Update log keys to match logstream This updates our log message formats to match the standard format used in Knative, including by its logstream package. This should prevent lots of logspam during tests. --- config/config-logging.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/config/config-logging.yaml b/config/config-logging.yaml index b8d1e4f2fbc..bf18d8f0715 100644 --- a/config/config-logging.yaml +++ b/config/config-logging.yaml @@ -21,7 +21,6 @@ metadata: app.kubernetes.io/instance: default app.kubernetes.io/part-of: tekton-pipelines data: - # Common configuration for all knative codebase zap-logger-config: | { "level": "info", @@ -34,11 +33,11 @@ data: "errorOutputPaths": ["stderr"], "encoding": "json", "encoderConfig": { - "timeKey": "ts", - "levelKey": "level", + "timeKey": "timestamp", + "levelKey": "severity", "nameKey": "logger", "callerKey": "caller", - "messageKey": "msg", + "messageKey": "message", "stacktraceKey": "stacktrace", "lineEnding": "", "levelEncoder": "",