[logback-dev] svn commit: r1237 - in logback-demo/trunk: . src/etc

noreply.seb at qos.ch noreply.seb at qos.ch
Tue Jan 16 20:12:13 CET 2007


Author: seb
Date: Tue Jan 16 20:12:13 2007
New Revision: 1237

Modified:
   logback-demo/trunk/   (props changed)
   logback-demo/trunk/src/etc/logback-access.xml

Log:
on going work on the demo doc

Modified: logback-demo/trunk/src/etc/logback-access.xml
==============================================================================
--- logback-demo/trunk/src/etc/logback-access.xml	(original)
+++ logback-demo/trunk/src/etc/logback-access.xml	Tue Jan 16 20:12:13 2007
@@ -7,8 +7,32 @@
 		</layout>
 	</appender>
 	
-	<!-- PART VII: Lottery
-	<appender name="SMTP"
+	<!-- PART VII: Lottery  -->
+	 <appender name="STDOUT_LOTTERY"
+    class="ch.qos.logback.core.ConsoleAppender">
+    <filter class="ch.qos.logback.core.filter.EvaluatorFilter">
+      <evaluator name="lotto_eval">
+        <Expression>
+          url.matches(request.getRequestURL().toString())
+        </Expression>
+        <matcher name="url">
+          <regex>Lottery.do</regex>
+          <caseSensitive>false</caseSensitive>
+        </matcher>
+      </evaluator>
+      <OnMatch>ACCEPT</OnMatch>
+      <OnMismatch>DENY</OnMismatch>
+    </filter>
+    <layout class="ch.qos.logback.access.PatternLayout">
+      <Pattern>
+        LOTTO: %A [%r] Guess=%reqParameter{guessed_number}
+      </Pattern>
+    </layout>
+  </appender> 
+
+  
+  <!--
+  <appender name="SMTP"
 		class="ch.qos.logback.access.net.SMTPAppender">
 		<layout class="ch.qos.logback.access.html.HTMLLayout">
 			<Pattern>%h%l%u%t%r%s%b</Pattern>
@@ -23,30 +47,9 @@
 	  <To>sebastien at qos.ch</To>
 		<To>ceki.gulcu at gmail.com</To>			
 	</appender>
-	
-	<appender name="STDOUT_LOTTERY"
-		class="ch.qos.logback.core.ConsoleAppender">
-		<filter class="ch.qos.logback.core.filter.EvaluatorFilter">
-			<evaluator name="lotto_eval">
-				<Expression>
-					url.matches(request.getRequestURL().toString())
-				</Expression>
-				<matcher name="url">
-					<regex>lotto.do</regex>
-					<caseSensitive>false</caseSensitive>
-				</matcher>
-			</evaluator>
-			<OnMatch>ACCEPT</OnMatch>
-			<OnMismatch>DENY</OnMismatch>
-		</filter>
-		<layout class="ch.qos.logback.access.PatternLayout">
-			<Pattern>
-				LOTTO: %A [%r] Guess=%reqParameter{guessed_number}
-			</Pattern>
-		</layout>
-	</appender>	
 	-->
 	
+	
 	<!-- Part VIII: JMX
   <filter class="ch.qos.logback.access.filter.CountingFilter">
 		<name>countingFilter</name>
@@ -55,8 +58,9 @@
 	
   <appender-ref ref="STDOUT" />
   
-  <!-- PART VII: Lottery
-	<appender-ref ref="SMTP" />
+  <!-- PART VII: Lottery -->
 	<appender-ref ref="STDOUT_LOTTERY" />
-	-->
+	
+  
+  <!-- <appender-ref ref="SMTP" /> -->
 </configuration>
\ No newline at end of file



More information about the logback-dev mailing list