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

NLog.Targets.Wrappers.FilteringTargetWrapper

Filters log entries based on a condition.
public ConditionExpression Condition { get; set; }

Gets or sets the condition expression. Log events who meet this condition will be forwarded to the wrapped target.

public Filter Filter { get; set; }

Gets or sets the filter. Log events who evaluates to Ignore will be discarded

Initializes a new instance of the FilteringTargetWrapper class.

public FilteringTargetWrapper(string name, Target wrappedTarget, ConditionExpression condition)

Initializes a new instance of the FilteringTargetWrapper class.

public FilteringTargetWrapper(Target wrappedTarget, ConditionExpression condition)

Initializes a new instance of the FilteringTargetWrapper class.