-
Notifications
You must be signed in to change notification settings - Fork 88
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
Include performance info in separate fields #209
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@maihacke Awesome that you found a solution for this. 👍 So if you write the message in a particular syntax/format then it is understood by the encoder when writing the JSON so he emits according custom fields. By using StructuredArguments
you are using the official API to write the required format. That is a great improvement.
You were saying that you still write the old message in your comment but I can see that in the code.
I do not mind that but just wanted to understand if that is a mistake...
BTW: we seem to mix different styles for our property names:
Can we align this? Also we should think about a balance of very short but still explanatory property names. One can question if JSON is a reasonable format for logs as it is massively causing redundancies since every log entry has the same structure but always includes the names of each property. This is kind of nuts. We should try to keep the property names short. |
|
Good hint, I changed the names accordingly |
I changed our
PerformanceLogFilter
to show how #39 can be solved.Currently the information is logged twice, once in the original form separated by ; and now additionally in separate fields. I kept the original format for backwards compatibility. If this is not required it is changed quite easily.
The new implementation will created logs like this:
(prettyfied)