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 Roller.java
Date Mon, 06 Sep 2004 15:38:18 GMT
ceki        2004/09/06 08:38:18

  Modified:    src/java/org/apache/log4j/varia Roller.java
  Log:
  Cateory -> Logger
  Category.getInstance -> Logger.getLogger
  
  Revision  Changes    Path
  1.4       +5 -5      logging-log4j/src/java/org/apache/log4j/varia/Roller.java
  
  Index: Roller.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/varia/Roller.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Roller.java	3 Apr 2002 22:18:14 -0000	1.3
  +++ Roller.java	6 Sep 2004 15:38:18 -0000	1.4
  @@ -8,7 +8,7 @@
   
   package org.apache.log4j.varia;
   
  -import org.apache.log4j.Category;
  +import org.apache.log4j.Logger;
   import org.apache.log4j.BasicConfigurator;
   
   import java.io.IOException;
  @@ -29,7 +29,7 @@
      @since version 0.9.0 */
   public class Roller {
   
  -  static Category cat = Category.getInstance(Roller.class.getName());
  +  static Logger logger = Logger.getLogger(Roller.class);
     
   
     static String host;
  @@ -87,13 +87,13 @@
         dos.writeUTF(ExternallyRolledFileAppender.ROLL_OVER);
         String rc = dis.readUTF();
         if(ExternallyRolledFileAppender.OK.equals(rc)) {
  -	cat.info("Roll over signal acknowledged by remote appender.");
  +	logger.info("Roll over signal acknowledged by remote appender.");
         } else {
  -	cat.warn("Unexpected return code "+rc+" from remote entity.");
  +        logger.warn("Unexpected return code "+rc+" from remote entity.");
   	System.exit(2);
         }
       } catch(IOException e) {
  -      cat.error("Could not send roll signal on host "+host+" port "+port+" .",
  +      logger.error("Could not send roll signal on host "+host+" port "+port+" .",
   		e);
         System.exit(2);
       }
  
  
  

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