logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject cvs commit: logging-log4j/tests/src/java/org/apache/log4j/xml CustomLevelTestCase.java
Date Thu, 18 Nov 2004 22:36:36 GMT
ceki        2004/11/18 14:36:36

  Modified:    tests/src/java/org/apache/log4j/xml CustomLevelTestCase.java
  Log:
  Using the newly introduced ConfiguratorBase.dumpErrors method
  
  Revision  Changes    Path
  1.9       +6 -7      logging-log4j/tests/src/java/org/apache/log4j/xml/CustomLevelTestCase.java
  
  Index: CustomLevelTestCase.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/tests/src/java/org/apache/log4j/xml/CustomLevelTestCase.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- CustomLevelTestCase.java	26 May 2004 17:19:37 -0000	1.8
  +++ CustomLevelTestCase.java	18 Nov 2004 22:36:36 -0000	1.9
  @@ -21,7 +21,6 @@
   import junit.framework.TestSuite;
   
   import org.apache.log4j.*;
  -import org.apache.log4j.helpers.LogLog;
   import org.apache.log4j.joran.JoranConfigurator;
   import org.apache.log4j.util.Compare;
   
  @@ -53,9 +52,8 @@
       org.apache.log4j.BasicConfigurator.configure();
       JoranConfigurator jc = new JoranConfigurator();
       jc.doConfigure("input/xml/customLevel1.xml", LogManager.getLoggerRepository());
  -    LogLog.info(""+jc.getExecutionContext().getErrorList());
  +    jc.dumpErrors();
       
  -
       common();
       assertTrue(Compare.compare(TEMP, "witness/customLevel.1"));
     }
  @@ -64,7 +62,8 @@
       org.apache.log4j.BasicConfigurator.configure();
       JoranConfigurator jc = new JoranConfigurator();
       jc.doConfigure("input/xml/customLevel2.xml", LogManager.getLoggerRepository());
  -    LogLog.info(""+jc.getExecutionContext().getErrorList());
  +    jc.dumpErrors();
  +    
       common();
       assertTrue(Compare.compare(TEMP, "witness/customLevel.2"));
     }
  @@ -73,7 +72,7 @@
       org.apache.log4j.BasicConfigurator.configure();
       JoranConfigurator jc = new JoranConfigurator();
       jc.doConfigure("input/xml/customLevel3.xml", LogManager.getLoggerRepository());
  -    LogLog.info(""+jc.getExecutionContext().getErrorList());
  +    jc.dumpErrors();
       
       common();
       assertTrue(Compare.compare(TEMP, "witness/customLevel.3"));
  @@ -83,7 +82,7 @@
       org.apache.log4j.BasicConfigurator.configure();
       JoranConfigurator jc = new JoranConfigurator();
       jc.doConfigure("input/xml/customLevel4.xml", LogManager.getLoggerRepository());
  -    LogLog.info(""+jc.getExecutionContext().getErrorList());
  +    jc.dumpErrors();
   
       common();
       assertTrue(Compare.compare(TEMP, "witness/customLevel.4"));
  @@ -97,7 +96,7 @@
       logger.error("Message " + ++i);
       logger.log(XLevel.TRACE, "Message " + ++i);
     }
  -
  +  
     public static Test suite() {
       TestSuite suite = new TestSuite();
       suite.addTest(new CustomLevelTestCase("test1"));
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message