common
common copied to clipboard
[Feature Request] Provides a better common logger
Currently, kubeflow/common provides a logger utils for operator to use. It uses github.com/sirupsen/logrus underneath.
https://github.com/kubeflow/common/blob/master/pkg/util/logger.go#L20
The problem I notice is new operators using kubebuilder have inbuilt logger for operator logics.
This makes the logs really messy.
Can we provide a interface layer like logr and provide method like SetLogger and different operator can use their own implementation?
Issue-Label Bot is automatically applying the labels:
| Label | Probability |
|---|---|
| feature | 0.97 |
Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback! Links: app homepage, dashboard and code for this bot.
Agreed. Having a unified interface would make it easier for downstream apps to consume the logs.
cc @ShuhanYan @carmark in case you are interested