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/config PropertyPrinter.java
Date Thu, 28 Oct 2004 12:54:33 GMT
ceki        2004/10/28 05:54:33

  Modified:    src/java/org/apache/log4j/spi LoggerRepository.java
                        HierarchyEventListener.java
               tests/src/java/org/apache/log4j StressCategory.java
               src/java/org/apache/log4j/config PropertyPrinter.java
  Log:
  Changing references from Category to Logger
  
  Revision  Changes    Path
  1.19      +1 -1      logging-log4j/src/java/org/apache/log4j/spi/LoggerRepository.java
  
  Index: LoggerRepository.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/spi/LoggerRepository.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- LoggerRepository.java	7 Jun 2004 17:13:36 -0000	1.18
  +++ LoggerRepository.java	28 Oct 2004 12:54:32 -0000	1.19
  @@ -103,7 +103,7 @@
         parameter instead of a <code>Level</code>. */
     public void setThreshold(String val);
   
  -  public void emitNoAppenderWarning(Category cat);
  +  public void emitNoAppenderWarning(Logger logger);
     
     /**
        Get the repository-wide threshold. See {@link
  
  
  
  1.7       +2 -2      logging-log4j/src/java/org/apache/log4j/spi/HierarchyEventListener.java
  
  Index: HierarchyEventListener.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/spi/HierarchyEventListener.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- HierarchyEventListener.java	27 Feb 2004 16:47:34 -0000	1.6
  +++ HierarchyEventListener.java	28 Oct 2004 12:54:32 -0000	1.7
  @@ -30,7 +30,7 @@
   public interface HierarchyEventListener {
     //public
     //void categoryCreationEvent(Category cat);
  -  public void addAppenderEvent(Category cat, Appender appender);
  +  public void addAppenderEvent(Logger cat, Appender appender);
   
  -  public void removeAppenderEvent(Category cat, Appender appender);
  +  public void removeAppenderEvent(Logger cat, Appender appender);
   }
  
  
  
  1.5       +3 -3      logging-log4j/tests/src/java/org/apache/log4j/StressCategory.java
  
  Index: StressCategory.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/tests/src/java/org/apache/log4j/StressCategory.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- StressCategory.java	7 Sep 2004 14:49:12 -0000	1.4
  +++ StressCategory.java	28 Oct 2004 12:54:32 -0000	1.5
  @@ -9,7 +9,7 @@
   
   
   import org.apache.log4j.Level;
  -import org.apache.log4j.Category;
  +import org.apache.log4j.Logger;
   import java.util.Random;
   
   /*
  @@ -30,7 +30,7 @@
     
     static int LENGTH;
     static String[] names;
  -  static Category[] cat;
  +  static Logger[] cat;
     static CT[] ct;
   
     static Random random = new Random(10);
  @@ -54,7 +54,7 @@
       for(int i=0; i < LENGTH; i++) {
         names[i] = args[i];
       }    
  -    cat = new Category[LENGTH];
  +    cat = new Logger[LENGTH];
       ct = new CT[LENGTH]; 
   
   
  
  
  
  1.6       +1 -1      logging-log4j/src/java/org/apache/log4j/config/PropertyPrinter.java
  
  Index: PropertyPrinter.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/config/PropertyPrinter.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- PropertyPrinter.java	19 May 2004 14:36:22 -0000	1.5
  +++ PropertyPrinter.java	28 Oct 2004 12:54:32 -0000	1.6
  @@ -75,7 +75,7 @@
     //}
     
     protected
  -  void printOptions(PrintWriter out, Category cat) {
  +  void printOptions(PrintWriter out, Logger cat) {
       Enumeration appenders = cat.getAllAppenders();
       Level prio = cat.getLevel();
       String appenderString = (prio == null ? "" : prio.toString());
  
  
  

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