-
Notifications
You must be signed in to change notification settings - Fork 267
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
[Misc] Standardizing klog Level Guidelines in AIBrix #69
Comments
|
@kr11 Can you help find all v(3) and v(5) instance and change to V(2) or V(4) based on the log information? BTW, v(2) is the default level and klog.v(4).InfoS equivalent to klog.InfoS. Let's probably also remove |
if you can add some guidance in the development docs. that would be great! l |
Besides the log level, since we use we probably can use this adaptor https://github.com/kubernetes/klog/blob/main/klogr/klogr.go or just change to structure logging |
@Jeffwan I just add a PR #202 about this issue, please take a look. And, is |
@kr11 good catch. that's a typo. |
#264 addressed this issue. |
Summary
This issue aims to standardize
klog
level usage across Kubernetes controllers by establishing clear logging guidelines.For the immediate phase, we will standardize on
klog.V(4)
.Motivation
With varying
klog
levels observed in files likemodeladapter_controller.go
andpodautoscaler_controller.go
, it's challenging to maintain and analyze logs effectively. Standardizing log levels and creating detailed guidelines will enable more consistent and meaningful logging, aiding in development and troubleshooting.Proposed Change
No response
Alternatives Considered
No response
The text was updated successfully, but these errors were encountered: