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/plugins PluginSkeleton.java Receiver.java
Date Tue, 04 Jan 2005 20:23:41 GMT
ceki        2005/01/04 12:23:41

  Modified:    src/java/org/apache/log4j/plugins PluginSkeleton.java
                        Receiver.java
  Log:
  PluginSkeletin extends ComponentBase
  
  Revision  Changes    Path
  1.11      +2 -3      logging-log4j/src/java/org/apache/log4j/plugins/PluginSkeleton.java
  
  Index: PluginSkeleton.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/plugins/PluginSkeleton.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- PluginSkeleton.java	27 Feb 2004 16:47:33 -0000	1.10
  +++ PluginSkeleton.java	4 Jan 2005 20:23:41 -0000	1.11
  @@ -16,6 +16,7 @@
   
   package org.apache.log4j.plugins;
   
  +import org.apache.log4j.spi.ComponentBase;
   import org.apache.log4j.spi.LoggerRepository;
   
   import java.beans.PropertyChangeEvent;
  @@ -40,12 +41,10 @@
     @author Paul Smith <psmith@apache.org>
     @since 1.3
   */
  -public abstract class PluginSkeleton implements Plugin {
  +public abstract class PluginSkeleton extends ComponentBase implements Plugin {
     /** Name of this plugin. */
     protected String name = "";
   
  -  /** Repository this plugin is attached to. */
  -  protected LoggerRepository repository;
     protected boolean active;
   
     /**
  
  
  
  1.9       +0 -15     logging-log4j/src/java/org/apache/log4j/plugins/Receiver.java
  
  Index: Receiver.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/plugins/Receiver.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- Receiver.java	20 Nov 2004 14:56:18 -0000	1.8
  +++ Receiver.java	4 Jan 2005 20:23:41 -0000	1.9
  @@ -17,7 +17,6 @@
   package org.apache.log4j.plugins;
   
   import org.apache.log4j.Level;
  -import org.apache.log4j.LogManager;
   import org.apache.log4j.Logger;
   import org.apache.log4j.spi.LoggingEvent;
   import org.apache.log4j.spi.Thresholdable;
  @@ -120,19 +119,5 @@
         // call the loggers appenders to process the event
         localLogger.callAppenders(event);
       }
  -  }
  -  
  -  /**
  -   * Return an instance specific logger to be used by the Receiver itself.
  -   * This logger is not intended to be used by Mrs. Piggy, our proverbial user,
  -   * hence the protected keyword.
  -   * 
  -   * @return instance specific logger
  -   */
  -  protected Logger getLogger() {
  -    if(logger == null) {
  -      logger = LogManager.getLogger(this.getClass().getName());
  -    }
  -    return logger;
     }
   }
  
  
  

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