Skip to content

Fix issue with CustomSerilogLogProvider#1558

Closed
zacharycmontoya wants to merge 1 commit into
masterfrom
zach/serilog/fix
Closed

Fix issue with CustomSerilogLogProvider#1558
zacharycmontoya wants to merge 1 commit into
masterfrom
zach/serilog/fix

Conversation

@zacharycmontoya

Copy link
Copy Markdown
Contributor

Restrict usage of optimized CustomSerilogLogProvider to versions of Serilog where the Serilog.Context.LogContext type has the Push method that takes in exactly one ILogEventEnricher. This fixes a crash condition in earlier versions of the library where the method does not exist. In those cases, fall back to the original LibLog implementation where we call PushProperty on each field.

@DataDog/apm-dotnet

…erilog where the Serilog.Context.LogContext type has the Push method that takes in exactly one ILogEventEnricher. This fixes a crash condition in earlier versions of the library where the method does not exist. In those cases, fall back to the original LibLog implementation where we call PushProperty on each field.
@zacharycmontoya zacharycmontoya self-assigned this Jun 21, 2021
@zacharycmontoya zacharycmontoya requested a review from a team as a code owner June 21, 2021 20:28
Comment thread src/Datadog.Trace/Logging/CustomSerilogLogProvider.cs
@zacharycmontoya

Copy link
Copy Markdown
Contributor Author

Superseded by #1560

@zacharycmontoya zacharycmontoya deleted the zach/serilog/fix branch June 22, 2021 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants