diff --git a/TestWebApi/Program.cs b/TestWebApi/Program.cs index 25a52d2..32c7f05 100644 --- a/TestWebApi/Program.cs +++ b/TestWebApi/Program.cs @@ -16,7 +16,7 @@ var serilogLogger = SetupSerilog(); LogService.AddLogAdapter(new BasedSerilogAdapter(serilogLogger)); builder.Logging.ClearProviders(); -builder.Logging.AddDotBased(LogService.Options); +builder.Logging.AddDotBasedLoggerProvider(LogService.Options); // Add services to the container. // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle @@ -25,8 +25,6 @@ builder.Services.AddSwaggerGen(); var app = builder.Build(); - - // Configure the HTTP request pipeline. if (app.Environment.IsDevelopment()) {