]> source.dussan.org Git - archiva.git/commitdiff
Adding archiva.log output and audit.log output.
authorJoakim Erdfelt <joakime@apache.org>
Wed, 20 Sep 2006 21:16:11 +0000 (21:16 +0000)
committerJoakim Erdfelt <joakime@apache.org>
Wed, 20 Sep 2006 21:16:11 +0000 (21:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@448344 13f79535-47bb-0310-9956-ffa450edef68

archiva-webapp/src/main/resources/META-INF/plexus/application.xml

index 263f0dc9a2b813cbfd5d03fdfce1767b8b05c44b..757484c1e224d6ee9d38f35750a2c0a257e837f1 100644 (file)
@@ -26,7 +26,8 @@
 
       <configuration>
         <threshold>WARN</threshold>
-        <default-appender>console</default-appender>
+        <default-appender>console,rolling</default-appender>
+        
         <appenders>
           <appender>
             <id>console</id>
             <type>org.apache.log4j.ConsoleAppender</type>
             <conversion-pattern>%d [%t] %-5p %-30c{1} - %m%n</conversion-pattern>
           </appender>
+        
+          <appender>
+            <id>rolling</id>
+            <threshold>DEBUG</threshold>
+            <type>org.apache.log4j.DailyRollingFileAppender</type>
+            <conversion-pattern>%-4r [%t] %-5p %c %x - %m%n</conversion-pattern>
+
+            <properties>
+              <property>
+                <name>file</name>
+                <value>${plexus.home}/logs/archiva.log</value>
+              </property>
+              <property>
+                <name>append</name>
+                <value>true</value>
+              </property>
+              <property>
+                <name>datePattern</name>
+                <value>'.'yyyy-MM-dd</value>
+              </property>
+            </properties>
+          </appender>
+          
+          <appender>
+            <id>audit</id>
+            <threshold>DEBUG</threshold>
+            <type>org.apache.log4j.DailyRollingFileAppender</type>
+            <conversion-pattern>%-4r [%t] %-5p %c %x - %m%n</conversion-pattern>
+
+            <properties>
+              <property>
+                <name>file</name>
+                <value>${plexus.home}/logs/audit.log</value>
+              </property>
+              <property>
+                <name>append</name>
+                <value>true</value>
+              </property>
+              <property>
+                <name>datePattern</name>
+                <value>'.'yyyy-MM-dd</value>
+              </property>
+            </properties>
+          </appender>
         </appenders>
+        
         <levels>
+          <level>
+            <hierarchy>org.apache.maven.archiva.web.servlet.repository.RepositoryMapping</hierarchy>
+            <level>DEBUG, audit</level>
+          </level>
+        
           <!-- Help identify bugs during testing -->
           <level>
             <hierarchy>org.apache.maven</hierarchy>