We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1eb5f8 commit 1689a4dCopy full SHA for 1689a4d
src/CodeOfChaos.Extensions.AspNetCore/LoggingOverrideExtensions.cs
@@ -37,8 +37,8 @@ public static WebApplicationBuilder OverrideLoggingWithSerilog(
37
builder.Logging.ClearProviders();
38
builder.Logging.AddSerilog(Log.Logger);
39
builder.Services.AddSingleton(Log.Logger);
40
- builder.Services.AddSingleton<IHostedService, ApplicationShutdownLoggerCleanup>();// Ensure cleanup
41
- builder.Services.AddLogging(loggingBuilder => loggingBuilder.AddSerilog(Log.Logger));
+ builder.Services.AddHostedService<ApplicationShutdownLoggerCleanup>(); // Ensure cleanup
+ // builder.Services.AddLogging(loggingBuilder => loggingBuilder.AddSerilog(Log.Logger));
42
43
return builder;
44
}
0 commit comments