-
Notifications
You must be signed in to change notification settings - Fork 352
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
Select Logging Framework #76
Comments
xref: #60 |
EG implementation plan xref: #60 |
With the same ideas in mind, we created: The key point is that it is just an interface with some wrapping logic to support dynamic log levels and Istio style scoped loggers, but allows one to plug their own logging implementations. This makes it easy for people embedding / building on top of EG libraries to select a different logging library while EG maintainers can write EG packages with logging directives in a consistent manner without worrying about the underlying logging implementation being used by an application binary using EG packages. A logging Implementation supporting this interface can be found here: Another interface solution is: However I'm personally not in favor of it due to its V-level interface. It makes it hard in a community project to properly identify verbosity of logs. Making it numeric and open ended allows for dis-synchronization around what a specific log levels verbosity should look like. It puts an extra burden on library authors to think about which level would fit and different authors might have a different sense of what a particular level entails. This is the main reason
Logr also doesn't take care of allowing scoped loggers with dynamic log level setting. I have no strong opinion on which logging implementation or output format to use for standard EG, I do have one on which logging interface is used. |
dlog is an interface solution that I'd advocate for (disclosure: I'm the original author). It is awfully similar to
same |
I have taken a look at Couple of reasons (also see my explanation on what telemetry/logger provides over
Note that metrics is an opt in feature. we can choose to do direct OpenTelemetry in our code for metrics purposes without using the telemetry/Metric interface. Using the interface would however allow vendors to choose their implementations just like with logging while we as EG library authors do not need to care about the underlying implementations used in a binary. |
Hi, guys.
Sorry that I have not finished the relevant documentation.
Just an introduction, I'm really interested in envoy-gateway project. |
After discussing in the community meeting yesterday, I'd like to propose that we move forward with using the Can maintainers please cast binding votes here with either reactions or comments, and as always non-binding votes are welcomed. |
We discussed this in the community meeting today and agreed that we'll proceed with |
Looking at #146 I see the usage of https://github.com/go-logr/logr . Major downsides I notice are
|
A logging framework should be utilized to decouple EG from any specific logging implementation. The logging framework should:
The text was updated successfully, but these errors were encountered: