<PackageReference Include="NLog" Version="6.0.6" />

NLog.Targets.Wrappers.FilteringRule

public class FilteringRule
Filtering rule for PostFilteringTargetWrapper.
public ConditionExpression Exists { get; set; }

Gets or sets the condition to be tested.

public ConditionExpression Filter { get; set; }

Gets or sets the resulting filter to be applied when the condition matches.

public FilteringRule()

Initializes a new instance of the FilteringRule class.

public FilteringRule(ConditionExpression whenExistsExpression, ConditionExpression filterToApply)

Initializes a new instance of the FilteringRule class.