A category-specific rule filters log messages according to the logger category or a matching category prefix. For example, a Microsoft rule can require Warning-level logs while the default allows Debug. section 26.4
Logging selects one applicable rule: it prefers provider-specific rules, then the longest matching category prefix, then Default, and finally the global minimum level. Rules are selected rather than merged. section 26.4
Filtering framework logs
In appsettings.json, set Logging:LogLevel:Default to Debug, System to Warning, and Microsoft to Warning. This reduces framework noise while retaining detailed application logging.
