You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by ep...@apache.org on 2004/07/01 13:29:42 UTC

cvs commit: jakarta-turbine-fulcrum/localization/impl/xdocs changes.xml

epugh       2004/07/01 04:29:42

  Modified:    localization/impl/src/java/org/apache/fulcrum/localization
                        DefaultLocalizationService.java
               localization/impl/xdocs changes.xml
  Log:
  Use inherited getLogger() instead of Log in classes extending AbstractLogEnabled.
  
  Revision  Changes    Path
  1.4       +4 -8      jakarta-turbine-fulcrum/localization/impl/src/java/org/apache/fulcrum/localization/DefaultLocalizationService.java
  
  Index: DefaultLocalizationService.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-fulcrum/localization/impl/src/java/org/apache/fulcrum/localization/DefaultLocalizationService.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DefaultLocalizationService.java	15 Nov 2003 16:22:35 -0000	1.3
  +++ DefaultLocalizationService.java	1 Jul 2004 11:29:42 -0000	1.4
  @@ -67,8 +67,6 @@
   import org.apache.avalon.framework.configuration.ConfigurationException;
   import org.apache.avalon.framework.logger.AbstractLogEnabled;
   import org.apache.commons.lang.StringUtils;
  -import org.apache.commons.logging.Log;
  -import org.apache.commons.logging.LogFactory;
   
   /**
    * <p>This class is the single point of access to all localization
  @@ -107,8 +105,6 @@
       extends AbstractLogEnabled
       implements LocalizationService, Configurable, Initializable
   {
  -    /** The log. */
  -    private static Log log = LogFactory.getLog(DefaultLocalizationService.class);
       /** Key Prefix for our bundles */
       private static final String BUNDLES = "bundles";
       /**
  @@ -188,9 +184,9 @@
           // initBundleNames(null);
           defaultLocale = new Locale(defaultLanguage, defaultCountry);
           Localization.setLocalizationService(this);
  -        if (log.isInfoEnabled())
  +        if (getLogger().isInfoEnabled())
           {
  -            log.info("Localization Service is Initialized now..");
  +            getLogger().info("Localization Service is Initialized now..");
           }
       }
       /**
  @@ -566,7 +562,7 @@
                       + loc
                       + ", key="
                       + key;
  -            log.debug(mesg);
  +            getLogger().debug(mesg);
               // Text not found in requested or default bundles.
               throw new MissingResourceException(mesg, bundleName, key);
           }
  
  
  
  1.3       +4 -0      jakarta-turbine-fulcrum/localization/impl/xdocs/changes.xml
  
  Index: changes.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-fulcrum/localization/impl/xdocs/changes.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- changes.xml	30 Jun 2004 13:23:19 -0000	1.2
  +++ changes.xml	1 Jul 2004 11:29:42 -0000	1.3
  @@ -8,6 +8,10 @@
     <body>
       <release version="1.0.4" date="">
         <action dev="epugh" type="update">
  +      	Use inherited getLogger() instead of Log in classes
  +      	extending AbstractLogEnabled.
  +      </action>     
  +      <action dev="epugh" type="update">
         	Update to use Merlin 3.3.0
         </action>    
         <action dev="epugh" type="add">
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org