aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-webapp/src/main/resources/log4j2.xml
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-12-27 14:55:12 +0000
committerOlivier Lamy <olamy@apache.org>2012-12-27 14:55:12 +0000
commit708a34f1f23b9c1a20abb244fecd299992480a4b (patch)
treed54069226f6ee121e308a55bfcc0bd4401a8f8f1 /archiva-modules/archiva-web/archiva-webapp/src/main/resources/log4j2.xml
parent58edbc0c438c92c593780f355eae3505e36037e3 (diff)
downloadarchiva-708a34f1f23b9c1a20abb244fecd299992480a4b.tar.gz
archiva-708a34f1f23b9c1a20abb244fecd299992480a4b.zip
rename archiva-webapp-js module to archiva-webapp
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1426213 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webapp/src/main/resources/log4j2.xml')
-rw-r--r--archiva-modules/archiva-web/archiva-webapp/src/main/resources/log4j2.xml138
1 files changed, 138 insertions, 0 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/resources/log4j2.xml b/archiva-modules/archiva-web/archiva-webapp/src/main/resources/log4j2.xml
new file mode 100644
index 000000000..c36bbc4e1
--- /dev/null
+++ b/archiva-modules/archiva-web/archiva-webapp/src/main/resources/log4j2.xml
@@ -0,0 +1,138 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+
+<configuration>
+
+ <properties>
+ <property name="logsDirectory">${sys:appserver.base}/logs</property>
+ </properties>
+
+ <appenders>
+
+ <RollingFile name="rolling" fileName="${logsDirectory}/archiva.log"
+ filePattern="${logsDirectory}/archiva-%d{MM-dd-yyyy}.log">
+ <PatternLayout>
+ <pattern>%d [%t] %-5p %c %x - %m%n</pattern>
+ </PatternLayout>
+ <Policies>
+ <TimeBasedTriggeringPolicy />
+ </Policies>
+ </RollingFile>
+
+ <RollingFile name="auditlog" fileName="${logsDirectory}/archiva-audit.log"
+ filePattern="${logsDirectory}/logs/archiva-audit-%d{MM-dd-yyyy}.log">
+ <PatternLayout>
+ <pattern>%d{yyyy-MM-dd HH:mm:ss} %m%n</pattern>
+ </PatternLayout>
+ <Policies>
+ <TimeBasedTriggeringPolicy />
+ </Policies>
+ </RollingFile>
+
+ <RollingFile name="redbackAuditLog" fileName="${logsDirectory}/archiva-security-audit.log"
+ filePattern="${logsDirectory}/archiva-security-audit.log-%d{MM-dd-yyyy}.log">
+ <PatternLayout>
+ <pattern>%d{yyyy-MM-dd HH:mm:ss} - %X{redback.currentUser} - %m%n</pattern>
+ </PatternLayout>
+ <Policies>
+ <TimeBasedTriggeringPolicy />
+ </Policies>
+ </RollingFile>
+
+ </appenders>
+ <loggers>
+
+ <logger name="org.apache.archiva.redback.struts2.action.AuditEvent" additivity="false" level="info">
+ <appender-ref ref="redbackAuditLog" />
+ </logger>
+
+ <logger name="org.apache.archiva.AuditLog" additivity="false" level="info">
+ <appender-ref ref="auditlog" />
+ </logger>
+
+ <!-- INFO level loggers can use the default
+ <logger name="org.apache.archiva.consumers" level="info"/>
+
+ <logger name="org.apache.archiva" level="info"/>
+
+
+ <logger name="org.quartz" level="info"/>
+
+ <logger name="org.apache.jasper" level="info"/>
+
+ <logger name="com.opensymphony.xwork2" level="info"/>
+
+ <logger name="org.apache.struts2" level="info"/>
+
+ -->
+
+ <!-- WebDav objects -->
+ <logger name="org.apache.archiva.webdav.ArchivaDavResource" level="info"/>
+
+
+ <logger name="org.apache.archiva.webdav.ArchivaDavResourceFactory" level="info"/>
+
+
+ <!-- squelch noisy objects (for now) -->
+ <logger name="org.apache.commons" level="warn"/>
+
+ <logger name="net.sf.ehcache" level="warn"/>
+
+
+ <!-- retained for Redback -->
+ <logger name="JPOX" level="warn"/>
+
+
+ <logger name="JPOX.MetaData" level="error"/>
+
+
+ <logger name="JPOX.RDBMS.SQL" level="error"/>
+
+
+ <logger name="SQL" level="error"/>
+
+
+
+ <logger name="org.apache.commons.configuration.DefaultConfigurationBuilder" level="error"/>
+
+ <!-- debug wagon transfer -->
+ <!--
+ <logger name="org.apache.archiva.proxy.common" level="debug"/>
+
+ -->
+ <!-- apache httpclient debug content transfer verbose -->
+ <!--
+ <logger name="org.apache.http.wire" level="debug"/>
+
+ -->
+ <!-- apache httpclient log headers -->
+ <!--
+ <logger name="org.apache.http.headers" level="debug"/>
+
+ -->
+
+ <root level="info">
+ <appender-ref ref="rolling"/>
+ </root>
+ </loggers>
+</configuration>
+
+