-
Notifications
You must be signed in to change notification settings - Fork 81
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
improve support for structured logging (Json and possibly other formats) #643
Comments
probably we should do it in phases:
|
To do (1), we should create a high-performance, zero-allocation JSON recognizer ( If it contains valid JSON, then it can be inserted as-is, without the need to wrap it into a If it does NOT contain valid JSON, then the current behavior should occur. I think we can add |
I could come up with something regarding (1), have something ready to show next week. |
Could you have a look at the #657 ? |
Once again, updated #657 |
in current implementation we have json logger
however there is not way have to do case class logging to json in structured way
there is also limitation in relation to ZIO#log* interface which only supports strings, zio core log annotation also supporting just string values
in relation to that currently it could be possible to do
however current json logger is not able recognise json string value
this could be fixed, but it is probably not very safe and future proof
also other thing which we could consider is support for zio-schema, which then could allow different structured output based on given schema
we need to analyze the possibilities how to add this functionality and make it more user friendly
The text was updated successfully, but these errors were encountered: