Skip to content

Add support for Mapped Diagnostic Logical Context #107

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

Open
karoberts opened this issue Oct 9, 2015 · 4 comments
Open

Add support for Mapped Diagnostic Logical Context #107

karoberts opened this issue Oct 9, 2015 · 4 comments

Comments

@karoberts
Copy link

NLog 4.1 supports adding context variables that survive across logical contexts (like async/await) where the thread might change but the context is the same.

https://github.com/NLog/NLog/wiki/MDLC-Layout-Renderer

It would be great if Common.Logging could somehow incorporate something like this so I don't have to make a call to an NLog class when using Common.Logging.

@jgowdy
Copy link

jgowdy commented Aug 22, 2016

This would be huge for our team. I ended up writing my own assembly to abstract this out as we transition from log4net to NLog.

@karoberts
Copy link
Author

I also ended up building my own using AsyncLocals.

@pberggreen
Copy link

It would be nice to be able to control if Common.Logging is using the Mapped Diagnostics Context and the new Mapped Diagnostic Logical Context.

@sbohlen sbohlen added this to the Version 4.0 milestone Aug 1, 2017
@snakefoot
Copy link

snakefoot commented Jan 21, 2019

Created #176 that adds support for MDLC + NDLC with NLog 4.5 (Includes custom build of nuget-package as attachment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants