[slf4j-dev] svn commit: r1169 - slf4j/trunk/slf4j-jdk14/src/test/java/org/slf4j
ceki at slf4j.org
ceki at slf4j.org
Thu Oct 2 23:05:01 CEST 2008
Author: ceki
Date: Thu Oct 2 23:05:01 2008
New Revision: 1169
Modified:
slf4j/trunk/slf4j-jdk14/src/test/java/org/slf4j/InvocationTest.java
Log:
keep JDK logging quite during tests...
Modified: slf4j/trunk/slf4j-jdk14/src/test/java/org/slf4j/InvocationTest.java
==============================================================================
--- slf4j/trunk/slf4j-jdk14/src/test/java/org/slf4j/InvocationTest.java (original)
+++ slf4j/trunk/slf4j-jdk14/src/test/java/org/slf4j/InvocationTest.java Thu Oct 2 23:05:01 2008
@@ -33,6 +33,8 @@
package org.slf4j;
+import java.util.logging.Level;
+
import junit.framework.TestCase;
@@ -44,16 +46,22 @@
*/
public class InvocationTest extends TestCase {
+ Level oldLevel;
+ java.util.logging.Logger root = java.util.logging.Logger.getLogger("");
+
public InvocationTest (String arg0) {
super(arg0);
}
protected void setUp() throws Exception {
super.setUp();
+ oldLevel = root.getLevel();
+ root.setLevel(Level.OFF);
}
protected void tearDown() throws Exception {
super.tearDown();
+ root.setLevel(oldLevel);
}
public void test1() {
More information about the slf4j-dev
mailing list