You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ECS integration/library project(s) (e.g. Elastic.CommonSchema.Serilog): Elastic.Serilog.Sinks - Version - 8.12.*
ECS schema version (e.g. 1.4.0):
ECS .NET assembly version (e.g. 1.4.2):
Elasticsearch version (if applicable):
.NET framework / OS: 8
Description of the problem, including expected versus actual behavior:
Trying to configure Elastic Search Sink in following way
Log.Logger = new LoggerConfiguration() .Enrich.FromLogContext() .WriteTo.ElasticCloud("***", "***","***") .CreateLogger()
Results in following compilation error
Severity Code Description Project File Line Suppression State
Error (active) CS0121 The call is ambiguous between the following methods or properties: 'ConfigSinkExtensions.ElasticCloud(LoggerSinkConfiguration, string, string, string, Action?, Action?, LoggingLevelSwitch?, LogEventLevel)' and 'ElasticsearchSinkExtensions.ElasticCloud(LoggerSinkConfiguration, string, string, string, Action?, Action?, LoggingLevelSwitch?, LogEventLevel)' Wellzio.TestConnectivity C:\Repositories\Wellzio\Wellzio.TestConnectivity\Wellzio.TestConnectivity\Program.cs 13
ECS integration/library project(s) (e.g. Elastic.CommonSchema.Serilog): Elastic.Serilog.Sinks - Version - 8.12.*
ECS schema version (e.g. 1.4.0):
ECS .NET assembly version (e.g. 1.4.2):
Elasticsearch version (if applicable):
.NET framework / OS: 8
Description of the problem, including expected versus actual behavior:
Trying to configure Elastic Search Sink in following way
Log.Logger = new LoggerConfiguration() .Enrich.FromLogContext() .WriteTo.ElasticCloud("***", "***","***") .CreateLogger()
Results in following compilation error
Severity Code Description Project File Line Suppression State
Error (active) CS0121 The call is ambiguous between the following methods or properties: 'ConfigSinkExtensions.ElasticCloud(LoggerSinkConfiguration, string, string, string, Action?, Action?, LoggingLevelSwitch?, LogEventLevel)' and 'ElasticsearchSinkExtensions.ElasticCloud(LoggerSinkConfiguration, string, string, string, Action?, Action?, LoggingLevelSwitch?, LogEventLevel)' Wellzio.TestConnectivity C:\Repositories\Wellzio\Wellzio.TestConnectivity\Wellzio.TestConnectivity\Program.cs 13
Steps to reproduce:
This problem is also reported here - https://discuss.elastic.co/t/ambiguous-reference-configuring-logging-to-elasticcloud-in-elastic-serilog-sinks/368372
The text was updated successfully, but these errors were encountered: