ASP.NET Core logging in 2 different files
问题 When using the default ASP.NET core logging in combination with Serilog, is it possible to write errors to errors.log and information to informations.log using Microsoft.Extensions.Logging; using Serilog; loggerFactory.AddSerilog(); loggerFactory.AddFile(Configuration.GetSection("Logging")); Appsettings.json: "Logging": { "PathFormat": "path-{Date}.log", "IncludeScopes": false, "LogLevel": { "Default": "Information", "System": "Information", "Microsoft": "Information" } } I want one logging