[logback-dev] svn commit: r1148 - in logback/trunk: logback-classic logback-site/src/site/xdocTemplates/manual
noreply.seb at qos.ch
noreply.seb at qos.ch
Fri Dec 22 15:18:05 CET 2006
Author: seb
Date: Fri Dec 22 15:18:05 2006
New Revision: 1148
Modified:
logback/trunk/logback-classic/pom.xml
logback/trunk/logback-site/src/site/xdocTemplates/manual/filters.xml
Log:
excluded LoggerPerfsTest from running
Now mentionning the availability of AbstractMatcherFilter in the "implement your own filter" section of filter.xml
Modified: logback/trunk/logback-classic/pom.xml
==============================================================================
--- logback/trunk/logback-classic/pom.xml (original)
+++ logback/trunk/logback-classic/pom.xml Fri Dec 22 15:18:05 2006
@@ -111,6 +111,7 @@
<exclude>**/AllTest.java</exclude>
<exclude>**/PackageTest.java</exclude>
<exclude>**/SerializationPerfsTest.java</exclude>
+ <exclude>**/LoggerPerfTest.java</exclude>
</excludes>
</configuration>
</plugin>
Modified: logback/trunk/logback-site/src/site/xdocTemplates/manual/filters.xml
==============================================================================
--- logback/trunk/logback-site/src/site/xdocTemplates/manual/filters.xml (original)
+++ logback/trunk/logback-site/src/site/xdocTemplates/manual/filters.xml Fri Dec 22 15:18:05 2006
@@ -160,6 +160,16 @@
getter and setter methods in the class, and you can specify the
option's value in an xml element, nested within the <em>filter</em> element.
</p>
+
+ <p>
+ In case you want to implement a filter that provides different behaviour
+ depending on the result of its test (say, a filter that would accept or deny
+ an event depending on the content of its message), you can extend the
+ <a href="../xref/ch/qos/logback/core/filter/AbstractMatcherFilter.html">
+ <code>AbstractMatcherFilter</code></a> class. It will provide your filter with
+ two attribute: <em>OnMatch</em> and <em>OnMismatch</em>, that can be configured
+ like any other option.
+ </p>
<h3>Evaluator Filters</h3>
@@ -176,7 +186,8 @@
<p>
Creating a customized filter that makes use of <code>EventEvaluator</code> objects
works the same way as seen previously, except that one must extend the
- <code>EvaluatorFilter</code> class, instead of the <code>Filter</code> class.
+ <code>EvaluatorFilter</code> class, instead of the <code>Filter</code>
+ or <code>AbstractMatcherFilter</code> classes.
</p>
<a name="EventEvaluator" />
More information about the logback-dev
mailing list