Syntax for Filters

Note: Filters are configured, using the <filter> and </filter> elements and their respective filter parameters. Any <appender> element attributes and subelements in the syntax are present to show the context for the pattern layout elements. See the syntax for each filter for the parameters that are used by that filter.

Syntax

XML Configuration
<appender class="AppenderName" name="log-name">
<filter class="filter-class">
<param name="filter-parameter-1" value="parameter-value-1"/>
<param name="filter-paramter-n" value="parameter-value"/>
</filter>
</appender>