[logback-dev] svn commit: r1770 - logback/trunk/logback-examples/src/main/java/chapter3

noreply.ceki at qos.ch noreply.ceki at qos.ch
Fri Aug 22 20:05:49 CEST 2008


Author: ceki
Date: Fri Aug 22 20:05:49 2008
New Revision: 1770

Modified:
   logback/trunk/logback-examples/src/main/java/chapter3/multiple.xml

Log:
- changes in indentation, level attribute instead of level element

Modified: logback/trunk/logback-examples/src/main/java/chapter3/multiple.xml
==============================================================================
--- logback/trunk/logback-examples/src/main/java/chapter3/multiple.xml	(original)
+++ logback/trunk/logback-examples/src/main/java/chapter3/multiple.xml	Fri Aug 22 20:05:49 2008
@@ -1,34 +1,23 @@
 <configuration>
-
-	<appender name="FILE"
-		class="ch.qos.logback.core.rolling.RollingFileAppender">
+	<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
 		<file>myApp.log</file>
 
-		<rollingPolicy
-			class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
-			<FileNamePattern>
-				myApp-%d{yyyy-MM-dd-HH-mm-ss}.log
-			</FileNamePattern>
+		<rollingPolicy	class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
+			<FileNamePattern>myApp-%d{yyyy-MM-dd-HH-mm-ss}.log</FileNamePattern>
 		</rollingPolicy>
 
 		<layout class="ch.qos.logback.classic.PatternLayout">
-			<Pattern>
-				%date %level [%thread] %logger{10} [%file : %line] %msg%n
-			</Pattern>
+			<Pattern>%date %level [%thread] %logger{10} [%file : %line] %msg%n</Pattern>
 		</layout>
 	</appender>
 
-	<appender name="STDOUT"
-		class="ch.qos.logback.core.ConsoleAppender">
+	<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
 		<layout class="ch.qos.logback.classic.PatternLayout">
-			<Pattern>
-				%msg%n
-			</Pattern>
+			<Pattern>%msg%n</Pattern>
 		</layout>
 	</appender>
 
-	<root>
-		<level value="debug" />
+	<root level="debug">
 		<appender-ref ref="FILE" />
 		<appender-ref ref="STDOUT" />
 	</root>


More information about the logback-dev mailing list