Skip to content
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

Stop using obsolete inheritance-based PeriodicBatchingSink API #101

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

dhirensham
Copy link
Contributor

The PeriodicBatchingSink library had deprecated passing the subclass of PeriodicBatchingSink to loggerSinkConfiguration.Sink(), and then removed support for the obsolete approach. Since the Graylog batching sink was not updated, attempting to initialize it resulted in #97.

While PeriodicBatchingSink reintroduced the removed APIs to maintain backwards compatibility in version 3.1.0, the Graylog batching sink references version 2.3.1. An easier solution would have been to simply update the PeriodicBatchingSink dependency to 3.1.0 but then we would still be depending on obsolete code which has already been removed once.

This updates the batching sink to use the correct approach instead.

@whir1 whir1 merged commit 62b7f4a into serilog-contrib:master Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants