cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r155320 - cocoon/trunk/src/core/test/org/apache/cocoon/core/container/ContainerTestCase.java
Date Fri, 25 Feb 2005 11:16:55 GMT
Author: cziegeler
Date: Fri Feb 25 03:16:52 2005
New Revision: 155320

URL: http://svn.apache.org/viewcvs?view=rev&rev=155320
Log:
Set deprecation logger and set default log level to warn.

Modified:
    cocoon/trunk/src/core/test/org/apache/cocoon/core/container/ContainerTestCase.java

Modified: cocoon/trunk/src/core/test/org/apache/cocoon/core/container/ContainerTestCase.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/core/test/org/apache/cocoon/core/container/ContainerTestCase.java?view=diff&r1=155319&r2=155320
==============================================================================
--- cocoon/trunk/src/core/test/org/apache/cocoon/core/container/ContainerTestCase.java (original)
+++ cocoon/trunk/src/core/test/org/apache/cocoon/core/container/ContainerTestCase.java Fri
Feb 25 03:16:52 2005
@@ -36,6 +36,7 @@
 import org.apache.avalon.framework.parameters.Parameters;
 import org.apache.avalon.framework.service.ServiceException;
 import org.apache.avalon.framework.service.ServiceManager;
+import org.apache.cocoon.util.log.DeprecationLogger;
 
 /**
  * JUnit TestCase for Cocoon Components.
@@ -120,7 +121,7 @@
 public class ContainerTestCase extends TestCase {
     
     /** The default logger */
-    private Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_DEBUG);
+    private Logger logger;
     
     /** The service manager to use */
     private ServiceManager manager;
@@ -143,6 +144,10 @@
      */
     protected void setUp() throws Exception {
         super.setUp();
+
+        String level = System.getProperty("junit.test.loglevel", "" + ConsoleLogger.LEVEL_WARN);
+        this.logger = new ConsoleLogger(Integer.parseInt(level));
+        DeprecationLogger.logger = this.logger;
         this.prepare();
     }
     



Mime
View raw message