Skip to content

Pass registered logger to DiagnosticContext #53

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

Merged

Conversation

cbersch
Copy link
Contributor

@cbersch cbersch commented Oct 25, 2021

The DiagnosticContext should use the logger, which is passed to or created by UseSerilog().

The DiagnosticContext should use the logger, which is passed to or created by UseSerilog().
@nblumhardt
Copy link
Member

Thanks for the PR! This looks good to me, but I'm short of time to dig properly into it right now and make sure we've considered all possible regressions.

I'll try to loop back around to this soon, unless someone beats me to it :-)

Apologies again for the slow turnaround.

@tabman83
Copy link

tabman83 commented Jul 1, 2022

We are faced with the same issue and we would appreciate if this could be considered for review & merge! Thanks!

@nblumhardt nblumhardt merged commit 12b0bb3 into serilog:dev Jul 4, 2022
@nblumhardt
Copy link
Member

This should reach NuGet as a -dev-* build shortly, unfortunately it seems that the .NET versions on the build worker have changed, so figuring that out now.

Any feedback on how it goes would be welcome, thanks 👍

Thanks for the PR, @cbersch!

@nblumhardt nblumhardt mentioned this pull request Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants