yoavs 2005/07/28 12:31:09
Modified: src/java/org/apache/log4j/varia Tag: v1_2-branch
StringMatchFilter.java
Log:
Bugzilla 30804 on this branch:
http://issues.apache.org/bugzilla/show_bug.cgi?id=30804
Revision Changes Path
No revision
No revision
1.7.2.2 +13 -23
logging-log4j/src/java/org/apache/log4j/varia/StringMatchFilter.java
Index: StringMatchFilter.java
===================================================================
RCS file:
/home/cvs/logging-log4j/src/java/org/apache/log4j/varia/StringMatchFilter.java,v
retrieving revision 1.7.2.1
retrieving revision 1.7.2.2
diff -u -r1.7.2.1 -r1.7.2.2
--- StringMatchFilter.java 24 May 2005 05:06:22 -0000 1.7.2.1
+++ StringMatchFilter.java 28 Jul 2005 19:31:09 -0000 1.7.2.2
@@ -21,29 +21,19 @@
import org.apache.log4j.helpers.OptionConverter;
/**
- This is a very simple filter based on string matching.
-
-
- <p>The filter admits two options <b>StringToMatch</b> and
- <b>AcceptOnMatch</b>. If there is a match between the value of the
- StringToMatch option and the message of the [EMAIL PROTECTED]
LoggingEvent},
- then the [EMAIL PROTECTED] #decide} method returns [EMAIL PROTECTED]
Filter#ACCEPT} if
- the <b>AcceptOnMatch</b> option value is true, if it is false then
- [EMAIL PROTECTED] Filter#DENY} is returned. If there is no match, [EMAIL
PROTECTED]
- Filter#NEUTRAL} is returned.
-
- <p>See configuration files <a
- href="../xml/doc-files/test6.xml">test6.xml</a>, <a
- href="../xml/doc-files/test7.xml">test7.xml</a>, <a
- href="../xml/doc-files/test8.xml">test8.xml</a>, <a
- href="../xml/doc-files/test9.xml">test9.xml</a>, and <a
- href="../xml/doc-files/test10.xml">test10.xml</a> for examples of
- seeting up a <code>StringMatchFilter</code>.
-
-
- @author Ceki Gülcü
-
- @since 0.9.0 */
+ * This is a very simple filter based on string matching.
+ *
+ * <p>The filter admits two options <b>StringToMatch</b> and
+ * <b>AcceptOnMatch</b>. If there is a match between the value of the
+ * StringToMatch option and the message of the [EMAIL PROTECTED]
org.apache.log4j.spi.LoggingEvent},
+ * then the [EMAIL PROTECTED] #decide(LoggingEvent)} method returns [EMAIL
PROTECTED] org.apache.log4j.spi.Filter#ACCEPT} if
+ * the <b>AcceptOnMatch</b> option value is true, if it is false then
+ * [EMAIL PROTECTED] org.apache.log4j.spi.Filter#DENY} is returned. If there
is no match, [EMAIL PROTECTED]
+ * org.apache.log4j.spi.Filter#NEUTRAL} is returned.
+ *
+ * @author Ceki Gülcü
+ * @since 0.9.0
+ */
public class StringMatchFilter extends Filter {
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]