aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-webapp
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2009-03-11 12:37:04 +0000
committerBrett Porter <brett@apache.org>2009-03-11 12:37:04 +0000
commitc5783f016ff93827bbcf8a6754ac9ead99b5f543 (patch)
tree908bedc4a3efd5ebd052b23d1593898eebf96cbc /archiva-modules/archiva-web/archiva-webapp
parentaae839ff4b8a2577336047520bab827d7f244038 (diff)
downloadarchiva-c5783f016ff93827bbcf8a6754ac9ead99b5f543.tar.gz
archiva-c5783f016ff93827bbcf8a6754ac9ead99b5f543.zip
[MRM-1130] add security audit log and clean up logging configuration
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@752431 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webapp')
-rw-r--r--archiva-modules/archiva-web/archiva-webapp/src/main/resources/log4j.xml25
1 files changed, 19 insertions, 6 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/resources/log4j.xml b/archiva-modules/archiva-web/archiva-webapp/src/main/resources/log4j.xml
index a7642208e..d92e2fa89 100644
--- a/archiva-modules/archiva-web/archiva-webapp/src/main/resources/log4j.xml
+++ b/archiva-modules/archiva-web/archiva-webapp/src/main/resources/log4j.xml
@@ -21,18 +21,31 @@
</layout>
</appender>
- <!-- Help identify bugs during testing -->
- <logger name="org.apache.maven.archiva">
+ <appender name="redbackAuditLog" class="org.apache.log4j.DailyRollingFileAppender">
+ <param name="file" value="${appserver.base}/logs/archiva-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>
+
+ <logger name="org.apache.archiva">
<level value="info"/>
<appender-ref ref="rolling" />
</logger>
- <logger name="org.apache.maven.archiva.repository.scanner">
- <level value="info" />
+ <logger name="org.apache.maven.archiva">
+ <level value="info"/>
<appender-ref ref="rolling" />
</logger>
-
- <logger name="org.apache.archiva.AuditLog">
+
+ <logger name="org.apache.archiva.AuditLog" additivity="false">
<level value="info" />
<appender-ref ref="auditlog" />
</logger>