[logback-dev] svn commit: r1774 - logback/trunk/logback-examples/src/main/java/chapter3
noreply.ceki at qos.ch
noreply.ceki at qos.ch
Sat Aug 23 23:18:06 CEST 2008
Author: ceki
Date: Sat Aug 23 23:18:06 2008
New Revision: 1774
Modified:
logback/trunk/logback-examples/src/main/java/chapter3/variableSubstitution1.xml
Log:
- simplifying the config file
Modified: logback/trunk/logback-examples/src/main/java/chapter3/variableSubstitution1.xml
==============================================================================
--- logback/trunk/logback-examples/src/main/java/chapter3/variableSubstitution1.xml (original)
+++ logback/trunk/logback-examples/src/main/java/chapter3/variableSubstitution1.xml Sat Aug 23 23:18:06 2008
@@ -1,21 +1,11 @@
<configuration>
- <substitutionProperty name="user.home.dir"
- value="/Users/seb" />
+ <substitutionProperty name="user.home.dir" value="/home/sebastien" />
- <appender name="FILE"
- class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>${user.home.dir}/myApp.log</file>
- <rollingPolicy
- class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
- <FileNamePattern>
- myApp-%d{yyyy-MM-dd-HH}.log
- </FileNamePattern>
- </rollingPolicy>
<layout class="ch.qos.logback.classic.PatternLayout">
- <Pattern>
- %date %level [%thread] %logger{10} [%file : %line] %msg%n
- </Pattern>
+ <Pattern>%msg%n</Pattern>
</layout>
</appender>
More information about the logback-dev
mailing list