diff options
author | Joakim Erdfelt <joakime@apache.org> | 2007-04-13 19:07:53 +0000 |
---|---|---|
committer | Joakim Erdfelt <joakime@apache.org> | 2007-04-13 19:07:53 +0000 |
commit | 7508bee55b1b2a3bef1bc1b4b1dcbcfd4ce9a2a5 (patch) | |
tree | 9c91bdb902a61046249c8886c8f86629e26968ba | |
parent | f1baf328fb90d5c70dfe7265723f5aaac227a584 (diff) | |
download | archiva-7508bee55b1b2a3bef1bc1b4b1dcbcfd4ce9a2a5.tar.gz archiva-7508bee55b1b2a3bef1bc1b4b1dcbcfd4ce9a2a5.zip |
Adding better logging during test run.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches/archiva-jpox-database-refactor@528596 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | archiva-scheduled/pom.xml | 12 | ||||
-rw-r--r-- | archiva-scheduled/src/test/resources/log4j.xml | 47 |
2 files changed, 59 insertions, 0 deletions
diff --git a/archiva-scheduled/pom.xml b/archiva-scheduled/pom.xml index 76435f543..eab4dd58c 100644 --- a/archiva-scheduled/pom.xml +++ b/archiva-scheduled/pom.xml @@ -87,6 +87,18 @@ <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-scheduled/src/test/resources/log4j.xml b/archiva-scheduled/src/test/resources/log4j.xml new file mode 100644 index 000000000..3c782b138 --- /dev/null +++ b/archiva-scheduled/src/test/resources/log4j.xml @@ -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> |