bloritsch    2003/03/19 08:50:36

  Modified:    fortress/src/java/org/apache/avalon/fortress/impl/handler
                        ComponentFactory.java
  Log:
  acquire the logger name from the id
  
  Revision  Changes    Path
  1.15      +4 -4      
avalon-excalibur/fortress/src/java/org/apache/avalon/fortress/impl/handler/ComponentFactory.java
  
  Index: ComponentFactory.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-excalibur/fortress/src/java/org/apache/avalon/fortress/impl/handler/ComponentFactory.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- ComponentFactory.java     19 Mar 2003 16:41:52 -0000      1.14
  +++ ComponentFactory.java     19 Mar 2003 16:50:35 -0000      1.15
  @@ -202,12 +202,12 @@
       private Logger aquireLogger()
       {
           Logger logger;
  -        final String name = ( m_configuration == null ? null : 
m_configuration.getAttribute( "name", null ) );
  +        final String name = ( m_configuration == null ? null : 
m_configuration.getAttribute( "id", null ) );
           if( null == name )
           {
               if( getLogger().isDebugEnabled() )
               {
  -                final String message = "no name attribute available, using standard 
name";
  +                final String message = "no id attribute available, using standard 
name";
                   getLogger().debug( message );
               }
               logger = m_loggerManager.getDefaultLogger();
  @@ -216,7 +216,7 @@
           {
               if( getLogger().isDebugEnabled() )
               {
  -                final String message = "name attribute is " + name;
  +                final String message = "id attribute is " + name;
                   getLogger().debug( message );
               }
               logger = m_loggerManager.getLoggerForCategory( name );
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to