continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r752952 - /continuum/trunk/continuum-webapp/src/main/resources/log4j.xml
Date Thu, 12 Mar 2009 17:55:55 GMT
Author: evenisse
Date: Thu Mar 12 17:55:55 2009
New Revision: 752952

URL: http://svn.apache.org/viewvc?rev=752952&view=rev
Log:
[CONTINUUM-2125] Add security log

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

Modified: continuum/trunk/continuum-webapp/src/main/resources/log4j.xml
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp/src/main/resources/log4j.xml?rev=752952&r1=752951&r2=752952&view=diff
==============================================================================
--- continuum/trunk/continuum-webapp/src/main/resources/log4j.xml (original)
+++ continuum/trunk/continuum-webapp/src/main/resources/log4j.xml Thu Mar 12 17:55:55 2009
@@ -30,99 +30,135 @@
     </layout>
   </appender>
 
+  <appender name="redbackAuditLog" class="org.apache.log4j.DailyRollingFileAppender">
+    <param name="file" value="${appserver.base}/logs/continuum-security-audit.log" />
+    <param name="append" value="true" />
+    <param name="datePattern" value="'.'yyyy-MM-dd" />
+    <layout class="org.apache.log4j.PatternLayout">
+      <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} - %X{redback.currentUser}
- %m%n"/>
+    </layout>
+  </appender>
+
+  <logger name="org.codehaus.plexus.redback.struts2.action.AuditEvent" additivity="false">
+    <level value="info" />
+    <appender-ref ref="redbackAuditLog" />
+  </logger>
+
   <!-- Help identify bugs during testing -->
   <logger name="org.apache.maven">
     <level value="info"/>
+    <appender-ref ref="rolling" />
   </logger>
 
   <logger name="org.apache.maven.continuum">
     <level value="info" />
+    <appender-ref ref="rolling" />
   </logger>
 
   <logger name="org.apache.maven.scm">
     <level value="info" />
+    <appender-ref ref="rolling" />
   </logger>
 
   <logger name="org.codehaus.plexus.redback">
     <level value="info"/>
+    <appender-ref ref="rolling" />
   </logger>
 
   <!-- squelch noisy objects (for now) -->
   <logger name="org.apache.commons">
     <level value="warn"/>
+    <appender-ref ref="rolling" />
   </logger>
 
   <logger name="net.sf.ehcache">
     <level value="warn"/>
+    <appender-ref ref="rolling" />
   </logger>
 
   <logger name="org.codehaus.plexus.mailsender.MailSender">
     <level value="info"/>
+    <appender-ref ref="rolling" />
   </logger>
 
   <logger name="org.codehaus.plexus.velocity">
     <level value="error"/>
+    <appender-ref ref="rolling" />
   </logger>
 
   <logger name="org.quartz">
     <level value="info"/>
+    <appender-ref ref="rolling" />
   </logger>
 
   <logger name="org.apache.jasper">
     <level value="info"/>
+    <appender-ref ref="rolling" />
   </logger>
 
   <logger name="com.opensymphony.xwork">
     <level value="info"/>
+    <appender-ref ref="rolling" />
   </logger>
 
   <!-- CONTINUUM-1228 -->
   <logger name="com.opensymphony.xwork2.util.OgnlUtil">
     <level value="error"/>
+    <appender-ref ref="rolling" />
   </logger>
 
   <logger name="org.codehaus.plexus.PlexusContainer">
     <level value="info"/>
+    <appender-ref ref="rolling" />
   </logger>
 
   <logger name="JPOX">
     <level value="warn"/>
+    <appender-ref ref="rolling" />
   </logger>
 
   <logger name="JPOX.MetaData">
     <level value="error"/>
+    <appender-ref ref="rolling" />
   </logger>
 
   <logger name="JPOX.RDBMS.SQL">
     <level value="error"/>
+    <appender-ref ref="rolling" />
   </logger>
 
   <logger name="SQL">
     <level value="error"/>
+    <appender-ref ref="rolling" />
   </logger>
 
   <logger name="freemarker">
     <level value="warn"/>
+    <appender-ref ref="rolling" />
   </logger>
 
   <logger name="org.codehaus.plexus.component.manager.ClassicSingletonComponentManager">
     <level value="error"/>
+    <appender-ref ref="rolling" />
   </logger>
   
   <logger name="org.springframework.beans.factory.xml.XmlBeanDefinitionReader">
     <level value="error"/>
+    <appender-ref ref="rolling" />
   </logger>
+
   <logger name="org.springframework.beans.factory.support.DefaultListableBeanFactory">
     <level value="error"/>
+    <appender-ref ref="rolling" />
   </logger>
 
   <logger name="net.sf.dozer.util.mapping.util.XMLParser">
     <level value="warn"/>
+    <appender-ref ref="rolling" />
   </logger>
 
   <root>
     <priority value="info" />
-    <appender-ref ref="rolling" />
   </root>
 
 </log4j:configuration>



Mime
View raw message