
Web我尝试在ASP.NET Core 7 Web API中为Integration Tests中的Serilog使用单独的配置文件。 这是我的Program.cs //Read Configuration from appSettings var config = new ConfigurationBuilder(). To work with Serilog in ASP.NET 6, you should first install the Serilog.AspNetCore NuGet package using the following command: Install-Package Serilog.AspNetCore If you would like to log the messages in a SQL Server database, you should install these packages: Serilog.aspnetcore … econet brasil.Setting up Log with Serilog in ASP.NET 6 Core - Bigscal
