[logback-dev] svn commit: r1670 - logback/trunk/logback-examples/src/main/java/chapter7

noreply.ceki at qos.ch noreply.ceki at qos.ch
Sat Apr 12 01:08:28 CEST 2008


Author: ceki
Date: Sat Apr 12 01:08:27 2008
New Revision: 1670

Added:
   logback/trunk/logback-examples/src/main/java/chapter7/simpleMDC.xml

Log:
- Express the configuration done by SimpleMDC.java in a config file


Added: logback/trunk/logback-examples/src/main/java/chapter7/simpleMDC.xml
==============================================================================
--- (empty file)
+++ logback/trunk/logback-examples/src/main/java/chapter7/simpleMDC.xml	Sat Apr 12 01:08:27 2008
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<configuration>
+
+	<appender name="CONSOLE"
+		class="ch.qos.logback.core.ConsoleAppender">
+		<layout class="ch.qos.logback.classic.PatternLayout">
+			<Pattern>%X{first} %X{last} - %m%n</Pattern>
+		</layout>
+	</appender>
+
+	<root>
+		<level value="debug" />
+		<appender-ref ref="CONSOLE" />
+	</root>
+</configuration>



More information about the logback-dev mailing list