{ "Serilog": { "Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.File" ], "MinimumLevel": { "Default": "Information", "Override": { "Microsoft": "Warning", "Microsoft.AspNetCore": "Warning", "Microsoft.Hosting.Lifetime": "Information" } }, "Filter": [ { "Name": "ByExcluding", "Args": { "expression": "@mt = 'An unhandled exception has occurred while executing the request.'" } } ], "WriteTo": [ { "Name": "File", "Args": { "path": "./Logs/log-.txt", "rollingInterval": "Day" } } ] } }