-
Notifications
You must be signed in to change notification settings - Fork 25
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
[VC-35738] Log with klog to stdout and stderr in Kubernetes text format #596
Commits on Oct 29, 2024
-
Log with klog to stdout and stderr in JSON format
Signed-off-by: Richard Wall <richard.wall@venafi.com>
Configuration menu - View commit details
-
Copy full SHA for e745fe0 - Browse repository at this point
Copy the full SHA e745fe0View commit details -
logs_test.go: assert didn't make the test exit with 1, move to require
For some reason, `assert.Equal` doesn't cause the test sub-process to exit with 1. Instead, it returns 0 which means we can't notice the error from the parent process.
Configuration menu - View commit details
-
Copy full SHA for 08d5e8c - Browse repository at this point
Copy the full SHA 08d5e8cView commit details -
logs_test.go: assert the logs themselves
That's useful to keep track what the logs look like, especially now that I'm trying to switch from plain klog to slog.
Configuration menu - View commit details
-
Copy full SHA for dcca1b3 - Browse repository at this point
Copy the full SHA dcca1b3View commit details -
logs.go: move to slog and show the src (vcert or agent) of the logs
Before, there was no way to know if a given log came from the VCert library or from the agent itself. I had to tweak logToSlogWriter's Writer to remove the extraneous "\n" that log.Printf prints.
Configuration menu - View commit details
-
Copy full SHA for ba052e4 - Browse repository at this point
Copy the full SHA ba052e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for fda1d3e - Browse repository at this point
Copy the full SHA fda1d3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for e4bf7cb - Browse repository at this point
Copy the full SHA e4bf7cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for d9bc223 - Browse repository at this point
Copy the full SHA d9bc223View commit details -
Configuration menu - View commit details
-
Copy full SHA for c39594a - Browse repository at this point
Copy the full SHA c39594aView commit details -
Configuration menu - View commit details
-
Copy full SHA for f3b721e - Browse repository at this point
Copy the full SHA f3b721eView commit details -
Set the default logging format to text
Signed-off-by: Richard Wall <richard.wall@venafi.com>
Configuration menu - View commit details
-
Copy full SHA for 6f8c52e - Browse repository at this point
Copy the full SHA 6f8c52eView commit details -
Remove redundant test for vcert log prefix
The exact logs output is now verified. Signed-off-by: Richard Wall <richard.wall@venafi.com>
Configuration menu - View commit details
-
Copy full SHA for 73526f3 - Browse repository at this point
Copy the full SHA 73526f3View commit details -
Signed-off-by: Richard Wall <richard.wall@venafi.com>
Configuration menu - View commit details
-
Copy full SHA for 54eb5a5 - Browse repository at this point
Copy the full SHA 54eb5a5View commit details