]> source.dussan.org Git - archiva.git/commitdiff
Adding better logging during test run.
authorJoakim Erdfelt <joakime@apache.org>
Fri, 13 Apr 2007 19:07:53 +0000 (19:07 +0000)
committerJoakim Erdfelt <joakime@apache.org>
Fri, 13 Apr 2007 19:07:53 +0000 (19:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches@528596 13f79535-47bb-0310-9956-ffa450edef68

archiva-jpox-database-refactor/archiva-scheduled/pom.xml
archiva-jpox-database-refactor/archiva-scheduled/src/test/resources/log4j.xml [new file with mode: 0644]

index 76435f5437327e9673c3adcd9fb587a6f26735dd..eab4dd58cb080953fdf98d8d3dda2f203ae23ec6 100644 (file)
       <version>1.0-alpha-2</version>
       <scope>test</scope>
     </dependency>
+    <dependency>
+      <groupId>org.codehaus.plexus</groupId>
+      <artifactId>plexus-slf4j-logging</artifactId>
+      <version>1.1-alpha-1-SNAPSHOT</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-log4j12</artifactId>
+      <version>1.2</version>
+      <scope>test</scope>
+    </dependency>
   </dependencies>
   <build>
     <plugins>
diff --git a/archiva-jpox-database-refactor/archiva-scheduled/src/test/resources/log4j.xml b/archiva-jpox-database-refactor/archiva-scheduled/src/test/resources/log4j.xml
new file mode 100644 (file)
index 0000000..3c782b1
--- /dev/null
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!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"/>
+    <layout class="org.apache.log4j.PatternLayout">
+      <param name="ConversionPattern" value="%5p|%t|%5r|%-30c{1} - %m%n"/>
+    </layout>
+  </appender>
+
+  <!-- Help identify bugs during testing -->
+  <logger name="org.apache.maven.archiva">
+    <level value="debug"/>
+  </logger>
+
+  <logger name="org.codehaus.plexus.security">
+    <level value="info"/>
+  </logger>
+
+  <logger name="org.codehaus.plexus.PlexusContainer">
+    <level value="info"/>
+  </logger>
+
+  <logger name="JPOX">
+    <level value="warn"/>
+  </logger>
+
+  <logger name="JPOX.MetaData">
+    <level value="error"/>
+  </logger>
+
+  <logger name="JPOX.RDBMS.SQL">
+    <level value="error"/>
+  </logger>
+
+  <logger name="SQL">
+    <level value="error"/>
+  </logger>
+
+  <root>
+    <priority value ="debug" />
+    <appender-ref ref="console" />
+  </root>
+
+</log4j:configuration>