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/examples/src/subclass MyLogger.java MyLoggerTest.java
Date Thu, 28 Oct 2004 13:10:21 GMT
ceki        2004/10/28 06:10:21

  Modified:    examples/src/subclass MyLogger.java MyLoggerTest.java
  Log:
  Changing references from Category to Logger
  
  Revision  Changes    Path
  1.2       +1 -13     logging-log4j/examples/src/subclass/MyLogger.java
  
  Index: MyLogger.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/examples/src/subclass/MyLogger.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MyLogger.java	15 Dec 2003 21:49:02 -0000	1.1
  +++ MyLogger.java	28 Oct 2004 13:10:21 -0000	1.2
  @@ -46,22 +46,10 @@
     }
   
     /**
  -     This method overrides {@link Logger#getInstance} by supplying
  -     its own factory type as a parameter.
  -  */
  -  public 
  -  static
  -  Category getInstance(String name) {
  -    return Logger.getLogger(name, myFactory); 
  -  }
  -  
  -  /**
        This method overrides {@link Logger#getLogger} by supplying
        its own factory type as a parameter.
     */
  -  public 
  -  static
  -  Logger getLogger(String name) {
  +  public static Logger getLogger(String name) {
       return Logger.getLogger(name, myFactory); 
     }
   
  
  
  
  1.3       +1 -1      logging-log4j/examples/src/subclass/MyLoggerTest.java
  
  Index: MyLoggerTest.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/examples/src/subclass/MyLoggerTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MyLoggerTest.java	26 May 2004 17:30:05 -0000	1.2
  +++ MyLoggerTest.java	28 Oct 2004 13:10:21 -0000	1.3
  @@ -58,7 +58,7 @@
         usage("Incorrect number of parameters.");
       }
       try {
  -      MyLogger c = (MyLogger) MyLogger.getInstance("some.cat");    
  +      MyLogger c = (MyLogger) MyLogger.getLogger("some.cat");    
         c.trace("Hello");
         c.debug("Hello");
       } catch(ClassCastException e) {
  
  
  

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