- Timestamp:
- 2011-09-05 11:26:26 (9 months ago)
- Location:
- trunk/core/kauri-runtime-testfw
- Files:
-
- 2 edited
-
pom.xml (modified) (1 diff)
-
src/main/java/org/kauriproject/runtime/testfw/AbstractRuntimeTest.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/kauri-runtime-testfw/pom.xml
r1790 r1946 30 30 <scope>compile</scope> 31 31 </dependency> 32 <dependency> 33 <groupId>org.slf4j</groupId> 34 <artifactId>jul-to-slf4j</artifactId> 35 </dependency> 32 36 </dependencies> 33 37 -
trunk/core/kauri-runtime-testfw/src/main/java/org/kauriproject/runtime/testfw/AbstractRuntimeTest.java
r1945 r1946 47 47 import org.restlet.data.Protocol; 48 48 import org.restlet.data.Reference; 49 import org.restlet.engine.Engine; 50 import org.slf4j.bridge.SLF4JBridgeHandler; 49 51 50 52 public abstract class AbstractRuntimeTest extends TestCase { … … 213 215 214 216 protected void setUpLogging() { 217 // Let Restlet configure its log now, since next we are going to redirect the JDK logging, and otherwise 218 // when the Restlet Engine is initialized it will undo that. 219 Engine.configureLog(); 220 221 // Forward JDK logging to SLF4J 222 java.util.logging.LogManager.getLogManager().reset(); 223 java.util.logging.LogManager.getLogManager().getLogger("").addHandler(new SLF4JBridgeHandler()); 224 java.util.logging.LogManager.getLogManager().getLogger("").setLevel(java.util.logging.Level.ALL); 225 215 226 // By passing these system properties, you can easily enable a certain level 216 227 // of debugging for a certain log category
Note: See TracChangeset
for help on using the changeset viewer.