3 ms·
klog is the descendant of glog which is a go implementation of Google's logging. Go has nothing to do with it except it's the logging that k8s took on (original
by cpuguy83 5y ago
klog is the descendant of glog which is a go implementation of Google's logging.
Go has nothing to do with it except it's the logging that k8s took on (originally it used glog).
-- edit typo
- EdwardDiego 5y agoSorry was referring more to the many different incompatible logging libraries in play. Also the inability in the ones I've used for the person running the app to set a particular logger to a desired level easily. I think klog can do this with the vmodules flag, if, and only if, the devs used klog.V() for their logging statements. Logrus requires the dev to allow the user to configure the log level, common idiom I've encountered is doing so via an env var, but IIRC, that applies to all logging in the app, no way to limit it to particular files/modules. It's been a real pain at times for me. Feels like the Go philosophy on logging focuses more on the dev controlling it, than the person running it.