Skip to content

Commit

Permalink
Update log keys to match logstream
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
imjasonh authored and tekton-robot committed Jul 18, 2022
1 parent 0c0f40e commit 10ecefb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions config/config-logging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": "",
Expand Down

0 comments on commit 10ecefb

Please sign in to comment.