commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joe...@apache.org
Subject svn commit: r801536 - in /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/impl: DefaultFileSystemManager.java StandardFileSystemManager.java
Date Thu, 06 Aug 2009 08:29:12 GMT
Author: joehni
Date: Thu Aug  6 08:29:11 2009
New Revision: 801536

URL: http://svn.apache.org/viewvc?rev=801536&view=rev
Log:
Fix default logger settings (VFS-271).

Modified:
    commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/impl/DefaultFileSystemManager.java
    commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/impl/StandardFileSystemManager.java

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/impl/DefaultFileSystemManager.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/impl/DefaultFileSystemManager.java?rev=801536&r1=801535&r2=801536&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/impl/DefaultFileSystemManager.java
(original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/impl/DefaultFileSystemManager.java
Thu Aug  6 08:29:11 2009
@@ -17,6 +17,7 @@
 package org.apache.commons.vfs.impl;
 
 import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 import org.apache.commons.vfs.CacheStrategy;
 import org.apache.commons.vfs.FileContentInfoFactory;
 import org.apache.commons.vfs.FileName;
@@ -116,7 +117,7 @@
     /**
      * The logger to use.
      */
-    private Log log;
+    private Log log = LogFactory.getLog(getClass());
 
     /**
      * The context to pass to providers.

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/impl/StandardFileSystemManager.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/impl/StandardFileSystemManager.java?rev=801536&r1=801535&r2=801536&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/impl/StandardFileSystemManager.java
(original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/impl/StandardFileSystemManager.java
Thu Aug  6 08:29:11 2009
@@ -53,14 +53,12 @@
     private static final String CONFIG_RESOURCE = "providers.xml";
     private static final String PLUGIN_CONFIG_RESOURCE = "META-INF/vfs-providers.xml";
 
-    private Log log = LogFactory.getLog(StandardFileSystemManager.class);
-
     private URL configUri;
     private ClassLoader classLoader;
 
     /**
      * Sets the configuration file for this manager.
-     * @param configUri The URI forthis manager.
+     * @param configUri The URI for this manager.
      */
     public void setConfiguration(final String configUri)
     {
@@ -70,7 +68,7 @@
         }
         catch (MalformedURLException e)
         {
-            log.warn(e.getLocalizedMessage(), e);
+            getLogger().warn(e.getLocalizedMessage(), e);
         }
     }
 
@@ -212,7 +210,7 @@
                 }
                 catch (IOException e)
                 {
-                    log.warn(e.getLocalizedMessage(), e);
+                    getLogger().warn(e.getLocalizedMessage(), e);
                 }
             }
         }
@@ -351,7 +349,7 @@
             {
                 final String msg = Messages.getString("vfs.impl/skipping-provider-scheme.debug",
                     new String[]{classname, requiredScheme});
-                VfsLog.debug(getLogger(), log, msg);
+                VfsLog.debug(getLogger(), getLogger(), msg);
                 return;
             }
         }
@@ -365,7 +363,7 @@
             {
                 final String msg = Messages.getString("vfs.impl/skipping-provider.debug",
                     new String[]{classname, requiredClass});
-                VfsLog.debug(getLogger(), log, msg);
+                VfsLog.debug(getLogger(), getLogger(), msg);
                 return;
             }
         }



Mime
View raw message