Open mwasson74 opened 2 years ago
I noticed something new this morning. When I shutoff/comment-out my Serilog Enricher (screen shot), the CorrelationId logging prints the generated CorrelationId as expected (another screen shot).
Enricher code that can return null:
Logging with the Enricher shutoff:
Hello,
I've am using your NuGet package and had a question regarding your logging. In CorrelationIdMiddleware Line 147 I am seeing![image](https://user-images.githubusercontent.com/12786751/173433721-01276e8a-3c3d-48bf-b77a-bbdbca802cc1.png)
null
as the generated CorrelationId in my logs:I cloned your repo and had my project reference the clone's dlls instead of the NuGet package and added my own logging line to see if CorrelationId was really
null
there and it is not.I realize it's a delegate returned from
LoggerMessage.Define()
but I don't understand why it printsnull
in the logs there instead of the actual CorrelationId.Thanks in advance for helping me understand!!