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/src/java/org/apache/log4j/varia/test Loop.java
Date Mon, 06 Sep 2004 15:37:47 GMT
ceki        2004/09/06 08:37:47

  Modified:    src/java/org/apache/log4j/varia/test Loop.java
  Log:
  Cateory -> Logger
  Category.getInstance -> Logger.getLogger
  
  Revision  Changes    Path
  1.3       +3 -3      logging-log4j/src/java/org/apache/log4j/varia/test/Loop.java
  
  Index: Loop.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/varia/test/Loop.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Loop.java	14 Dec 2000 21:08:35 -0000	1.2
  +++ Loop.java	6 Sep 2004 15:37:47 -0000	1.3
  @@ -1,7 +1,7 @@
   
   package org.apache.log4j.varia.test; 
   
  -import org.apache.log4j.Category;
  +import org.apache.log4j.Logger;
   import org.apache.log4j.PropertyConfigurator;
   
   /**
  @@ -12,7 +12,7 @@
      @author Ceki Gülcü */
   public class Loop {
   
  -  static Category cat = Category.getInstance(Loop.class.getName());
  +  static Logger logger = Logger.getLogger(Loop.class.getName());
     static int loopLength;
   
     public 
  @@ -52,7 +52,7 @@
     void test() {
       for(int i=0; i < loopLength; i++) {
         Thread.yield();
  -      cat.debug("MSG "+i);
  +      logger.debug("MSG "+i);
       }
     }
   }
  
  
  

---------------------------------------------------------------------
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