You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4php-dev@logging.apache.org by ih...@apache.org on 2010/07/27 11:09:17 UTC

svn commit: r979604 - /logging/log4php/trunk/src/site/apt/docs/appender-filter.apt

Author: ihabunek
Date: Tue Jul 27 09:09:17 2010
New Revision: 979604

URL: http://svn.apache.org/viewvc?rev=979604&view=rev
Log:
Tweaks to appenders web page:
* Moved TOC to a more logical position
* Replaced doxia snippet with hardcoded example, because XML snippets don't work

Modified:
    logging/log4php/trunk/src/site/apt/docs/appender-filter.apt

Modified: logging/log4php/trunk/src/site/apt/docs/appender-filter.apt
URL: http://svn.apache.org/viewvc/logging/log4php/trunk/src/site/apt/docs/appender-filter.apt?rev=979604&r1=979603&r2=979604&view=diff
==============================================================================
--- logging/log4php/trunk/src/site/apt/docs/appender-filter.apt (original)
+++ logging/log4php/trunk/src/site/apt/docs/appender-filter.apt Tue Jul 27 09:09:17 2010
@@ -18,8 +18,6 @@
  ------
  ------
 
-%{toc|section=1|fromDepth=1|toDepth=2}
-
 Filtering Messages
 
   Filtering is a mechanism to configure enhanced logging. For example, filter enable you to
@@ -29,6 +27,8 @@ Filtering Messages
   
   Currently filters are only enabled for the XML configuration.If you need complex features,
   than you better go with XML instead of property files.
+
+%{toc|section=1|fromDepth=1|toDepth=2}
   
 * Configuring 
 
@@ -119,6 +119,19 @@ Filtering Messages
   
 %{snippet|id=doxia|file=src/examples/php/filter_stringmatch.php}
 
-%{snippet|id=doxia|file=src/examples/resources/filter_stringmatch.xml}
-
++--
+<log4php:configuration xmlns:log4php="http://logging.apache.org/log4php/" threshold="all" debug="false">
+    <appender name="default" class="LoggerAppenderEcho">
+        <layout class="LoggerLayoutTTCC"/>
+        <filter class="LoggerFilterStringMatch">
+            <param name="StringToMatch" value="match" />
+            <param name="AcceptOnMatch" value="false" />
+        </filter>
+    </appender>
+    <root>
+        <level value="DEBUG" />
+        <appender_ref ref="default" />
+    </root>
+</log4php:configuration>
++--