FilteringWrapper target

Narayana R edited this page Aug 19, 2016 · 3 revisions
Clone this wiki locally

Filters log entries based on a condition.

Supported in .NET, Silverlight, Compact Framework and Mono.

Configuration Syntax

<targets>
  <target xsi:type="FilteringWrapper" name="String" condition="Condition">
    <target xsi:type="wrappedTargetType" ...target properties... />
  </target>
</targets>

Parameters

General Options

name - Name of the target.

Filtering Options

condition - Condition expression. Log events who meet this condition will be forwarded to the wrapped target. Condition Required.