Access serilog correlationId outside logger context

58 views Asked by At

How can we access the serilog correlationId outside the logger context?

I am trying to access the correlationId id inside a .net core hosted service. Since the hosted service runs background and the correlationId is null in this context. I would like to pass the correlationId id inside the hosted service dependency logger instance.

0

There are 0 answers