<PackageReference Include="Microsoft.Extensions.Logging" Version="10.0.8" />

Microsoft.Extensions.Logging.LoggerFilterOptions

public class LoggerFilterOptions
The options for a LoggerFilter.
public bool CaptureScopes { get; set; }

Gets or sets a value indicating whether logging scopes are being captured.

public LogLevel MinLevel { get; set; }

Gets or sets the minimum level of log messages if none of the rules match.

public IList<LoggerFilterRule> Rules { get; }

Gets the collection of LoggerFilterRule used for filtering log messages.

Creates a new LoggerFilterOptions instance.