-
Notifications
You must be signed in to change notification settings - Fork 148
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
Updating to 5.6.0 breaks compatibility with Serilog.Sinks.ElasticSearch 8.4.1 #339
Comments
The
This is different to the sink options class change. As you said Does the Elasticsearch sink need to handle batching sinks itself, not sure? The docs for batching sinks shows using |
In addition to all the correct things @jonorossi said, I would like to ask if you could provide a full sample app to reproduce your problem. |
@jonorossi thanks, appreciate the answer! We may have been using the wrong class, to begin with. With version 5.5.1 it still works but shows a warning about I'll take a look at |
Like @jonorossi already explained, we moved to the new API with 5.6.0 implementing IPeroidicBatchingSink instead of ILogEventSink. This should work with all sinks. The details are described here. https://github.com/serilog/serilog-sinks-periodicbatching/#getting-started and here The obsole warning you get is because you are using the old constructor/config extension for initialization but the recommended way is the new set of methods consuming a You can find a lot of samples in the samples folder. |
@ckadluba appreciate your reply. I'll update our application accordingly. Many thanks! |
Issue summary
Updating Serilog.Sinks.MSSqlServer from 5.5.1 to 5.6.0 breaks compatibility with Serilog.Sinks.ElasticSearch 8.4.1.
It seems that in 5.6.0 the
MSSqlServerSink
class was deprecated in favor ofMSSqlServerSinkOptions
, however, the latter does not implement theILogEventSink
interface.In 5.5.1 the
MSSqlServerSink
class inherits fromPeriodicBatchingSink
, which implementsILogEventSink
. This is no longer the case withMSSqlServerSinkOptions
. As result, it is no longer possible to set theFailureSink
property.Installed Serilog packages in the project:
Target framework and operating system:
Code
Is there a new class I should be using instead of
MSSqlServerSink
? Anything I may be missing here?The text was updated successfully, but these errors were encountered: