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/logger/src/java/org/apache/avalon/excalibur/logger Log4JLoggerManager.java
Date Mon, 04 Nov 2002 09:00:21 GMT
donaldp     2002/11/04 01:00:21

  Modified:    logger/src/java/org/apache/avalon/excalibur/logger
                        Log4JLoggerManager.java
  Log:
  extract messages in prep for i18n
  
  Revision  Changes    Path
  1.9       +7 -4      jakarta-avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/Log4JLoggerManager.java
  
  Index: Log4JLoggerManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/Log4JLoggerManager.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- Log4JLoggerManager.java	28 Oct 2002 00:36:03 -0000	1.8
  +++ Log4JLoggerManager.java	4 Nov 2002 09:00:21 -0000	1.9
  @@ -173,15 +173,18 @@
           {
               if( m_logger.isDebugEnabled() )
               {
  -                m_logger.debug( "Logger for category " + categoryName + " returned" );
  +                final String message =
  +                    "Logger for category " + categoryName + " returned";
  +                m_logger.debug( message );
               }
               return logger;
           }
   
           if( m_logger.isDebugEnabled() )
           {
  -            m_logger.debug( "Logger for category " + categoryName
  -                            + " not defined in configuration. New Logger created and returned"
);
  +            final String message = "Logger for category " + categoryName +
  +                " not defined in configuration. New Logger created and returned";
  +            m_logger.debug( message );
           }
   
           logger = new Log4JLogger( m_hierarchy.getLogger( 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