-
Notifications
You must be signed in to change notification settings - Fork 43
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
Use structured logging everywhere #113
Comments
@astefanutti Is this actually two seperate issues? One issue being the configuration of klog (referenced above) and the other being using |
@anishasthana Mentioned holding off on this aspect for the MCAD refactor |
@KPostOffice right, I think that should break down into:
|
@astefanutti I'm confused about "use a named logger...so each controller logs can be filtered" |
@KPostOffice it's a fancy a way of saying we should use go-logr |
like this? |
@KPostOffice yes. |
The operator pod logs contain unstructured statements like:
Or:
These come from components that rely on klog, which isn't configured to use the correct logging backend.
Also, klog CLI option flags should be bound, so it's possible, for example, to turn on JSON output for easier parsing by downstream log management tools.
Some information about Kubernetes structured logging can be found at https://kubernetes.io/blog/2020/09/04/kubernetes-1-19-introducing-structured-logs/.
The text was updated successfully, but these errors were encountered: