Ads by Lake Quincy Media

Wiki Navigation

 
Gibraltar - Learn about the best analysis tool for NLog

PostFilteringWrapper target

NLog documentation is a Wiki, which allows registered users to edit its content.
If you want to contribute, please create a user account and contact Jarek to get edit access.

Filters buffered log entries based on a set of conditions that are evaluated on a group of events. 

Supported in

Configuration Syntax

<targets>
  <target xsi:type="PostFilteringWrapper" name="String" defaultFilter="Condition">
    <target xsi:type="wrappedTargetType" ...target properties... />
    <when exists="Condition" filter="Condition"/><!-- repeated -->
  </target>
</targets>
Read more about using the Configuration File.

Parameters

  • General Options
  • name - Name of the target.
  • Filtering Options
  • defaultFilter - Default filter to be applied when no specific rule matches.Condition
  • Filtering Rules
  • rules - The collection of filtering rules. The rules are processed top-down and the first rule that matches determines the filtering condition to be applied to log events.Collection
    Each collection item is represented by <when /> element with the following attributes:

Remarks

PostFilteringWrapper must be used with some type of buffering target or wrapper, such as AsyncTargetWrapper, BufferingWrapper or ASPNetBufferingWrapper.

Ads by Lake Quincy Media