continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r734914 - /continuum/trunk/continuum-distributed-build/continuum-buildagent/continuum-buildagent-webapp/src/main/resources/log4j.xml
Date Fri, 16 Jan 2009 05:38:27 GMT
Author: ctan
Date: Thu Jan 15 21:38:26 2009
New Revision: 734914

URL: http://svn.apache.org/viewvc?rev=734914&view=rev
Log:
[CONTINUUM-1666] log messages of continuum buildagent to conf/continuum-buildagent.logs

Modified:
    continuum/trunk/continuum-distributed-build/continuum-buildagent/continuum-buildagent-webapp/src/main/resources/log4j.xml

Modified: continuum/trunk/continuum-distributed-build/continuum-buildagent/continuum-buildagent-webapp/src/main/resources/log4j.xml
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-distributed-build/continuum-buildagent/continuum-buildagent-webapp/src/main/resources/log4j.xml?rev=734914&r1=734913&r2=734914&view=diff
==============================================================================
--- continuum/trunk/continuum-distributed-build/continuum-buildagent/continuum-buildagent-webapp/src/main/resources/log4j.xml
(original)
+++ continuum/trunk/continuum-distributed-build/continuum-buildagent/continuum-buildagent-webapp/src/main/resources/log4j.xml
Thu Jan 15 21:38:26 2009
@@ -2,23 +2,33 @@
 <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
 
 <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
-  <appender name="console" class="org.apache.log4j.ConsoleAppender">
-    <param name="Target" value="System.out"/>
+  <appender name="rolling" class="org.apache.log4j.DailyRollingFileAppender">
+    <param name="file" value="${CONTINUUM_BUILDAGENT_HOME}/logs/continuum-buildagent.log"
/>
+    <param name="append" value="true" />
+    <param name="datePattern" value="'.'yyyy-MM-dd" />
     <layout class="org.apache.log4j.PatternLayout">
-      <param name="ConversionPattern" value="[%p] %-30c{1} - %m%n"/>
+      <param name="ConversionPattern" value="%d [%t] %-5p %c %x - %m%n"/>
     </layout>
   </appender>
+
   <logger name="org.apache.continuum.buildagent">
     <level value="info"/>
   </logger>
+  
   <logger name="org.apache.continuum.web">
     <level value="info"/>
   </logger>
+
+  <logger name="org.apache.continuum.distributed">
+    <level value="info"/>
+  </logger>
+
   <logger name="org.springframework">
     <level value="error"/>
   </logger>
+
   <root>
-    <priority value ="info" />
-    <appender-ref ref="console" />
+    <priority value="info" />
+    <appender-ref ref="rolling" />
   </root>
 </log4j:configuration>



Mime
View raw message