Closed jesdazrez closed 3 years ago
Updated with target set as the module_path for the summary logs
Resolved conflicts
Updated examples and benches
Thanks a lot for this PR! I like the idea, and I generalized it such users can now provide any kind of stateful filter. I moved your Deduper code into examples/dedup.rs and modified it such that it now uses the new option. But maybe you want to move the Deduper into a separate crate to allow others to directly use it?
Hi there!
We're using
flexi_logger
with this optional feature to avoid getting a lot of noise from some loops that can log the same message a lot of times.These changes add the ability to skip dups after some configurable leeway. Some messages are logged to summarize when and how many records were skipped.
I created the
dedup
example to demonstrate the functionality:Let me know what you think.