-
Notifications
You must be signed in to change notification settings - Fork 579
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
Log Bridge returning io.Writer #5425
Comments
CC @mx-psi |
Would this also work for multiline log messages? |
Nope. Do you have any proposal how to handle it? My only idea it to add an option would would accept a handler with signature more of less like: |
Forget For example, JSON output is a backend which plugs into that package. |
Something like that would be a good first step. But for integration into Kubernetes someone needs to think through all of the consequences (how to activate and configure the feature, how it affects other log output) - probably worth a Kubernetes Enhancement Proposal (KEP). |
I made a quick analysis. There need to be different log bridges for |
Closing this one. |
How did you configure |
My bad, I looked at However, as you mentioned earlier an |
That textlogger is a |
A lot of logging libraries simply accept an
io.Writer
for configuration. E.g.We could provide a generic log bridge which returns an
io.Writer
. That would allow using such libraries with OTel Go Logs.The biggest challenge would be to determine when a new record starts and ends. By default we could be say that log records are split by EOL.
The text was updated successfully, but these errors were encountered: