-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inconsistent log output format #3550
Comments
Velero need to bump Line 55 in 9f0026d
to v0.31.0 or above which contains kubernetes/client-go@75fea27 which will allow us to set klog.SetLogger() which should solve this problem. |
My team's goal is to enable all logs to be in json formatting which requirement is a subset that aligns with this issue IMO. |
velero/pkg/util/logging/format_flag.go Lines 24 to 26 in 9f0026d
these flags should apply to logs coming from client-go. |
@kaovilai let me clarify so after this is resolved by default the log will still be text-format, right? |
Should still be text by default yes |
What steps did you take and what happened:
k8s.io/client-go
writes out logs throughk8s.io/klog{,/v2}
in a different format than the rest of the application (logfmt or json) making it more difficult to parse, example:What did you expect to happen:
logs output in a consistent format
Anything else you would like to add:
Environment:
velero version
): 1.5.3Vote on this issue!
This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.
requires: #8442
The text was updated successfully, but these errors were encountered: