Description
I'm using this with Serilog.Sinks.ApplicationInsights, but AFAIK there seems to be a conflict:
- When calling
.UseSerilog
with theconfigureLogger
parameter,configureLogger
(which among other things calls Serilog.Sinks.ApplicationInsights'WriteTo.ApplicationInsights
) is executed before ASP.NET Core'sConfigureServices
. ConfigureServices
sets upTelemetryConfiguration.Active
WriteTo.ApplicationInsights
needsTelemetryConfiguration.Active
to be set up correctly
Is there a way to solve this?