[logback-dev] svn commit: r2275 - in logback-demo/trunk/src: etc main/resources

noreply.ceki at qos.ch noreply.ceki at qos.ch
Thu Jun 11 11:11:26 CEST 2009


Author: ceki
Date: Thu Jun 11 11:11:26 2009
New Revision: 2275

Modified:
   logback-demo/trunk/src/etc/jetty.xml
   logback-demo/trunk/src/main/resources/logback.xml

Log:


Modified: logback-demo/trunk/src/etc/jetty.xml
==============================================================================
--- logback-demo/trunk/src/etc/jetty.xml	(original)
+++ logback-demo/trunk/src/etc/jetty.xml	Thu Jun 11 11:11:26 2009
@@ -61,7 +61,8 @@
     </Set>
     
     
-    <Call id="MBeanServer" class="java.lang.management.ManagementFactory" name="getPlatformMBeanServer"/>
+    <Call id="MBeanServer" class="java.lang.management.ManagementFactory" 
+                           name="getPlatformMBeanServer"/>
     <!-- initialize the Jetty MBean container -->
     <Get id="Container" name="container">
       <Call name="addEventListener">
@@ -78,6 +79,7 @@
     <!-- =========================================================== -->
     <!-- Configure Request Log                                       -->
     <!-- =========================================================== -->
+    <!--        -->
     <Ref id="requestLog">
       <Set name="requestLog">
         <New id="requestLogImpl" class="ch.qos.logback.access.jetty.RequestLogImpl">
@@ -86,7 +88,8 @@
         </New>
       </Set>
     </Ref>
-        
+
+
     <!-- =========================================================== -->
     <!-- extra options                                               -->
     <!-- =========================================================== -->

Modified: logback-demo/trunk/src/main/resources/logback.xml
==============================================================================
--- logback-demo/trunk/src/main/resources/logback.xml	(original)
+++ logback-demo/trunk/src/main/resources/logback.xml	Thu Jun 11 11:11:26 2009
@@ -5,7 +5,7 @@
   <appender name="STDOUT"
 		class="ch.qos.logback.core.ConsoleAppender">
 		<layout class="ch.qos.logback.classic.PatternLayout">
-			<pattern>%marker %d{HH:mm:ss.SSS} [%thread] %-5level %logger{32} - %msg%n</pattern>
+			<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{32} - %msg%n</pattern>
 		</layout>
 	</appender>
   
@@ -14,14 +14,12 @@
 		<File>logFile.log</File>
 		<rollingPolicy
 			class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
-			<FileNamePattern>
-				z:/logFile.%d{yyyy-MM-dd_HH-mm}.log.zip
-			</FileNamePattern>
+			<FileNamePattern>logFile.%d{yyyy-MM-dd_HH-mm}.log.zip</FileNamePattern>
       <maxHistory>5</maxHistory>
 		</rollingPolicy>
 
 		<layout class="ch.qos.logback.classic.PatternLayout">
-			<Pattern>%marker %-26(%d{HH:mm:ss,SSS} [%thread]) %-5level %logger{32} - %msg%n
+			<Pattern>%-26(%d{HH:mm:ss,SSS} [%thread]) %-5level %logger{32} - %msg%n
 			</Pattern>
 		</layout>
 	</appender>
@@ -34,7 +32,6 @@
   -->
 
 	<!-- Cyclic buffer with Evaluator   -->
-  <!--   -->
 	<appender name="CYCLIC"
 		class="ch.qos.logback.core.read.CyclicBufferAppender">
 		<filter class="ch.qos.logback.core.filter.EvaluatorFilter">
@@ -50,14 +47,13 @@
 		<MaxSize>512</MaxSize>
   </appender>
 
-
-	<!-- TurboFilter: by MDC value    
+	<!-- TurboFilter: by MDC value    -->
   <turboFilter class="ch.qos.logback.classic.turbo.MDCFilter">
 		<MDCKey>username</MDCKey>
-		<Value>sebastien</Value>
+		<Value>ceki</Value>
 		<OnMatch>ACCEPT</OnMatch>
 	</turboFilter>  
- -->
+  
 	
 	<!-- TurboFilter: by Marker   -->
   <!--   
@@ -66,17 +62,14 @@
 		<Marker>HOWDY</Marker>
 		<OnMatch>DENY</OnMatch>
 	</turboFilter>
--->
-	  
+  -->
+	 
   
 	<!-- JMX Configurator -->
-  <!--   -->
   <jmxConfigurator />
 
 
-	<root>
-		<level value="DEBUG" />
-    
+	<root level="${lb_level:-ERROR}" >    
 		<appender-ref ref="STDOUT" />		
     <appender-ref ref="FILE" />
 


More information about the logback-dev mailing list