MinimumLevel sets the minimum severity Serilog accepts for log events. Configure a default level for every source, then add namespace-based overrides when one part of the application needs different detail. section 7.4.5
Configure application logging
Add a top-level Serilog section: "MinimumLevel": { "Default": "Information", "Override": { "Microsoft.AspNetCore": "Warning", "MyBGList": "Debug" } }. The same policy can be configured in Program.cs with lc.MinimumLevel.Is(...) and lc.MinimumLevel.Override(...). Serilog uses Verbose, Debug, Information, Warning, Error, and Fatal rather than Microsoft.Extensions.Logging.LogLevel names. section 7.4.5
Apply the policy deliberately:
- Treat the MinimumLevel settings as applying to all sinks by default. section 7.4.5
- Use restrictedToMinimumLevel when a particular sink needs its own threshold. section 7.4.5
