-
Notifications
You must be signed in to change notification settings - Fork 59
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
Ability to add custom fields to GelfMessage, computed from ILoggingEvent #55
Comments
Thanks for your ideas! I think, a more generic approach to map the additional fields (as you described) would be very good and makes it easier extensible. Would be great if you could provide a PR. |
I added a PR together with the issue, you didn't notice it? |
I noticed, but more things needs to be done, like test, documentation, examples, ... |
True, I did not want to invest too much time without first getting a confirmation from you that the direction is acceptable. |
Is the direction acceptable? |
Sorry for the misunderstanding. You wrote:
With my initial answer I tried to say that I'd like to go that direction. Unfortunately I currently do not have the time to refactor the |
Great! I plan to do 2 things during the upcoming weeks:
|
I think it would be the best if you focus on the PR for refactoring the |
I now updated the PR and refactored
I find these to be rather restrictive and would suggest to lift these:
|
OK, could you please:
|
Done |
Thank you. Give me a few days (probably until end of week) to review it. |
Thanks for your work. It really looks great! I'll play a little with it and will perform some small changes. I'll get back to you in order to check if those changes are breaking anything you had in mind. |
You now may want to take a look on c372fe8 |
Two small improvements to your changes, see pull request #57. |
Thanks again! |
Any plans for a release? |
Still no release :-( Any plans? |
Yep. I also makes me a little sad. In case you have some spare time left, you could help on #59 to finish the release. |
I would like to implement error grouping similar to Bugsnag. For this, I would like to add a group identifier as a custom field on each relevant GELF message (computed based on raw message, some stack frames, etc).
Currently, this is not easy, so I would like to propose some sort of extension point to make it easier. A kind of "enrichment" processors.
Basically, it would boil down to turning
GelfEncoder.mapAdditionalFields(ILoggingEvent event)
method into an interface. I'll make a PR to exemplify this.If you want to explore this idea further, you could even refactor
GelfEncoder
and replace allinclude*
properties with specific built-in "enrichment" processors. This would simplify that class A LOT.Usage sample:
The text was updated successfully, but these errors were encountered: