Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

DATAJPA-271 - Switched to Logback for test logging.

  • Loading branch information...
commit 5aab6a90db81083febd1139e85422a4bac1c8874 1 parent cb6edb8
Oliver Gierke olivergierke authored
22 pom.xml
View
@@ -52,7 +52,7 @@
</licenses>
<properties>
- <spring.version.30>3.0.7.RELEASE</spring.version.30>
+ <spring.version30>3.0.7.RELEASE</spring.version30>
<spring.version>3.1.3.RELEASE</spring.version>
<spring.data.commons.version>1.5.0.BUILD-SNAPSHOT</spring.data.commons.version>
<hibernate.version>3.6.10.Final</hibernate.version>
@@ -63,6 +63,7 @@
<junit.version>4.10</junit.version>
<jpa.version>2.0.0</jpa.version>
<slf4j.version>1.6.1</slf4j.version>
+ <logback.version>1.0.6</logback.version>
<cdi.version>1.0</cdi.version>
<webbeans.version>1.1.3</webbeans.version>
@@ -308,6 +309,13 @@
</dependency>
<dependency>
+ <groupId>ch.qos.logback</groupId>
+ <artifactId>logback-classic</artifactId>
+ <version>${logback.version}</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>${aspectj.version}</version>
@@ -367,19 +375,7 @@
<optional>true</optional>
</dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
- <version>${slf4j.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>1.2.16</version>
- <scope>test</scope>
- </dependency>
<!-- Persistence providers -->
13 src/test/resources/log4j.properties
View
@@ -1,13 +0,0 @@
-# Direct log messages to stdout
-log4j.appender.stdout=org.apache.log4j.ConsoleAppender
-log4j.appender.stdout.Target=System.out
-log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
-log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %40.40c:%4L - %m%n
-
-# Root logger option
-log4j.rootLogger=ERROR, stdout
-
-# Hibernate logging options (INFO only shows startup messages)
-log4j.logger.org.hibernate=FATAL
-#log4j.logger.org.springframework=INFO
-#log4j.logger.org.springframework.data=INFO
16 src/test/resources/logback.xml
View
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration>
+
+ <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <pattern>%d %5p %40.40c:%4L - %m%n</pattern>
+ </encoder>
+ </appender>
+
+ <logger name="org.springframework.data" level="info" />
+
+ <root level="warn">
+ <appender-ref ref="console" />
+ </root>
+
+</configuration>
4 template.mf
View
@@ -18,8 +18,8 @@ Import-Template:
org.hibernate.*;version="[3.5.3,4.0.0)";resolution:=optional,
org.joda.time.*;version="[1.5.0,2.0.0)";resolution:=optional,
org.slf4j.*;version="${slf4j.version:[=.=.=,+1.0.0)}",
- org.springframework.*;version="${spring.version.30:[=.=.=.=,+1.0.0)}",
- org.springframework.beans.factory.aspectj;version="${spring.version.30:[=.=.=.=,+1.0.0)}";resolution:=optional,
+ org.springframework.*;version="${spring.version30:[=.=.=.=,+1.0.0)}",
+ org.springframework.beans.factory.aspectj;version="${spring.version30:[=.=.=.=,+1.0.0)}";resolution:=optional,
org.springframework.data.*;version="${spring.data.commons.version:[=.=.=.=,+1.0.0)}",
org.w3c.*;version="0.0.0"
Please sign in to comment.
Something went wrong with that request. Please try again.