avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: avalon-excalibur/component/src/java/org/apache/avalon/excalibur/component AbstractDualLogEnabled.java
Date Fri, 27 Jun 2003 09:50:54 GMT
cziegeler    2003/06/27 02:50:54

  Modified:    component/src/java/org/apache/avalon/excalibur/component
                        AbstractDualLogEnabled.java
  Log:
  Don't overwrite previously set Logger
  
  Revision  Changes    Path
  1.6       +5 -2      avalon-excalibur/component/src/java/org/apache/avalon/excalibur/component/AbstractDualLogEnabled.java
  
  Index: AbstractDualLogEnabled.java
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/component/src/java/org/apache/avalon/excalibur/component/AbstractDualLogEnabled.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- AbstractDualLogEnabled.java	25 Feb 2003 16:28:21 -0000	1.5
  +++ AbstractDualLogEnabled.java	27 Jun 2003 09:50:54 -0000	1.6
  @@ -70,7 +70,10 @@
       public void setLogger( org.apache.log.Logger logger )
       {
           m_logkitLogger = logger;
  -        enableLogging( new LogKitLogger( logger ) );
  +        // are we already enabled
  +        if ( this.getLogger() == null ) {
  +            enableLogging( new LogKitLogger( logger ) );
  +        }
       }
   
       protected final org.apache.log.Logger getLogkitLogger()
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message