-
Notifications
You must be signed in to change notification settings - Fork 54
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
PeriodicBatching moving away from inheritance based API #111
Comments
Can you please provide more context as to what exactly the problem is so we can reproduce it. Please include:
Thanks, |
Sure, I'll provide what I can. I'm not sure which dotnet version exactly, as I wasn't the one building. I was told something recent if not current.
The Datadog package specified the 3.0.0 version of PeriodicBatching, and in doing so gave the error below.
From what I've gathered, this is from the 3.0.0 version of PeriodicBatching sealing the PeriodicBatchingSink class, and therefore preventing loading of the AWSCloudWatch library. To solve, in the short term we can simply require Serilog.Sinks.PeriodicBatching = 3.1.0. But it sounds like eventually the AWSCloudWatch codebase needs to update to implementing IBatchedLogEventSink instead of PeriodicBatchingSink. |
Hello @ChadyG. The source code is in this fork. https://github.com/genoher/serilog-sinks-awscloudwatch |
I think the easiest thing here is to just copy the |
I have never made a pull request. Some of the changes I have made are the following:
After testing it and confirming that it works correctly, I will make a pull request. PD: Sorry if my English is not correct, I have used the google translator. |
Please don't do any of those things. Instead just copy the whole version 2.0 of the Serilog.Sinks.PeriodicBatching library into this library and remove the dependency. |
Would like to add to this I also have encountered the same issue. At the moment we are removing the Datadog sink and instead using the Datadog Forwarder to get CloudWatch logs into Datadog. |
This is being fixed in #115 |
Allow flexible versions of serilog so that it works works for everyone. fix #111
See:
serilog/serilog-sinks-periodicbatching#56
Some other dependencies are now pointing to the 3.0.0 release of this, which breaks any code inheriting directly from PeriodicBatchingSink. There is a 3.1.0 release that returns the inheritance, but as the old API is obsoleted any code inheriting from this needs to be updated to avoid conflicts in the future.
The text was updated successfully, but these errors were encountered: