avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/component/src/java/org/apache/avalon/excalibur/component Logger2LogKitManager.java
Date Sat, 18 May 2002 06:25:34 GMT
donaldp     02/05/17 23:25:34

  Modified:    component/src/java/org/apache/avalon/excalibur/component
                        Tag: ECM_LOGENABLED Logger2LogKitManager.java
  Log:
  Make sure people who "bypass" the LoggerManager
  getLogger* method will still have loggers configured
  properly.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +6 -2      jakarta-avalon-excalibur/component/src/java/org/apache/avalon/excalibur/component/Attic/Logger2LogKitManager.java
  
  Index: Logger2LogKitManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/component/src/java/org/apache/avalon/excalibur/component/Attic/Logger2LogKitManager.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- Logger2LogKitManager.java	18 May 2002 05:55:04 -0000	1.1.2.1
  +++ Logger2LogKitManager.java	18 May 2002 06:25:34 -0000	1.1.2.2
  @@ -17,9 +17,9 @@
    * An adaptor between LogkitManager and LoggerManager.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.1.2.1 $ $Date: 2002/05/18 05:55:04 $
  + * @version $Revision: 1.1.2.2 $ $Date: 2002/05/18 06:25:34 $
    */
  -public class Logger2LogKitManager
  +class Logger2LogKitManager
       implements LogKitManager
   {
       private final Hierarchy m_hierarchy = new Hierarchy();
  @@ -28,6 +28,10 @@
       public Logger2LogKitManager( final LoggerManager loggerManager )
       {
           m_loggerManager = loggerManager;
  +        m_hierarchy = new Hierarchy();
  +        final LogKit2LoggerTarget target =
  +            new LogKit2LoggerTarget( loggerManager.getDefaultLogger() );
  +        m_hierarchy.setDefaultLogTarget( target );
       }
   
       public org.apache.log.Logger getLogger( final String categoryName )
  
  
  

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


Mime
View raw message