Recommended Approach Correlation Query for All Registrars in ASP.NET vNext
ILogger
has a method BeginScope
that is for correlation I think. I put together a sample: https://github.com/tugberkugurlu/AspNetVNextSamples/blob/3d36cdb4c2072d333d0e2583894c5616875ad8ed/src/LoggingSample/Startup.cs
Correlation seems to work with the NLog implementation in my example. However, with my approach above, I have not been able to find a way to define scopes between logger types. I solved this by using only one logger inside my application.
What is the recommended way to correlate requests between registrars in ASP.NET vNext?
+3
source to share
No one has answered this question yet
Check out similar questions: