-
Notifications
You must be signed in to change notification settings - Fork 52
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
Incompatibility between Serilog.Sinks.Seq 7.0.0 and Serilog.Sinks.Elasticsearch 9.0.3 #213
Comments
The fix for this was merged in serilog-contrib/serilog-sinks-elasticsearch#579, I am not sure where the Elasticsearch sink preview releases are published but hopefully one will be on the way soon. |
We are also seeing this with
|
v10 of Serilog.Sinks.Elasticsearch is now published. Hi @profet23 - is this the sink you're using? I can PR a fix over there if so: https://github.com/Cimpress-MCP/serilog-sinks-awscloudwatch |
That's the one. Thank you. |
This is also fixed in v7.0.1 of this sink |
The above versions are the latest at the time of writing (12 Mar 2024).
If you reference in your project the latest version of Serilog.Sinks.Seq and Serilog.Sinks.Elasticsearch you get this runtime error:
System.TypeLoadException : Could not load type 'Serilog.Sinks.Elasticsearch.ElasticsearchSink' from assembly 'Serilog.Sinks.Elasticsearch, Version=9.0.3.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10' because the parent type is sealed.
It seems that the problem is in this:
As a workaround I downgraded Serilog.Sinks.Seq to version 6.0.0. (this version is using Serilog.Sinks.PeriodicBatching (>= 3.1.0))
I would like to use the latest version of Seq.
Can you fix this please?
The text was updated successfully, but these errors were encountered: