From 772a140defec4dbdf8ce0a5cd34e285d47b9b35e Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Fri, 23 Nov 2012 10:50:29 +0100 Subject: [PATCH] DATAMONGO-576 - Configure java.util.logging to prevent verbose test logging. Added Slf4j bridge and configured surefire to configure JUL accordingly. --- spring-data-mongodb-parent/pom.xml | 9 +++++++++ .../src/test/resources/logging.properties | 1 + 2 files changed, 10 insertions(+) create mode 100644 spring-data-mongodb/src/test/resources/logging.properties diff --git a/spring-data-mongodb-parent/pom.xml b/spring-data-mongodb-parent/pom.xml index 8e5d8b9d3..5c0733adc 100644 --- a/spring-data-mongodb-parent/pom.xml +++ b/spring-data-mongodb-parent/pom.xml @@ -161,6 +161,12 @@ ${org.slf4j.version} test + + org.slf4j + jul-to-slf4j + ${org.slf4j.version} + test + ch.qos.logback logback-classic @@ -259,6 +265,9 @@ **/PerformanceTests.java junit:junit-dep + + src/test/resources/logging.properties + diff --git a/spring-data-mongodb/src/test/resources/logging.properties b/spring-data-mongodb/src/test/resources/logging.properties new file mode 100644 index 000000000..2f5ec24dd --- /dev/null +++ b/spring-data-mongodb/src/test/resources/logging.properties @@ -0,0 +1 @@ +handlers = org.slf4j.bridge.SLF4JBridgeHandler \ No newline at end of file