-
Notifications
You must be signed in to change notification settings - Fork 57
Changed custom pattern handling to not silently ignore errors and other minor improvements #53
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
Conversation
… least store them in a violations list
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.
Many thanks for your contribution and interest in the project.
- The new constructor will be a nice feature
- The constructor loads default patterns (not custom, from custom file), it is an important requirement and must be done automatically during the Grok initialization (in order not to force the user/consumer to do it - dangerous - there is no guarantee that the user will do this)
- PatternViolations concept will not fix the issue with ignoring errors, but adds more complexity and, again, requires additional operations from users
- With what actions can you use async/await here?
- A fluent interface is a good idea and can be designed however I'd avoid any static
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.
👍 LGTM
Great job! Thank you
Any help for first issue? |
Hi @EltonAlvess, |
Hey there,
here is the PR you mentioned in #52.
Some notes:
IEnumerable<(string, string)>
, because I thoughtStream
is not neccessary in all the use casesPatternViolations
list I added might be a quick fix for the silently ignores errors problem, I'm not sure, that this is a good design decision in the long term. I would think over an API redesign callingGrok
statically with a fluent interface removing all logic from the constructor... Maybe there is also room for usingasync/await
. Example see below (just an idea, maybe we should discuss that as soon as you have more time):