logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattsic...@apache.org
Subject svn commit: r1601042 - in /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/util: BundleResourceLoader.java ClassLoaderResourceLoader.java
Date Sat, 07 Jun 2014 00:11:49 GMT
Author: mattsicker
Date: Sat Jun  7 00:11:49 2014
New Revision: 1601042

URL: http://svn.apache.org/r1601042
Log:
Add toString() to ResourceLoader implementations.

Modified:
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/util/BundleResourceLoader.java
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/util/ClassLoaderResourceLoader.java

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/util/BundleResourceLoader.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/util/BundleResourceLoader.java?rev=1601042&r1=1601041&r2=1601042&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/util/BundleResourceLoader.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/util/BundleResourceLoader.java
Sat Jun  7 00:11:49 2014
@@ -50,4 +50,9 @@ public final class BundleResourceLoader 
         final Enumeration<URL> enumeration = bundle.getResources(name);
         return enumeration;
     }
+
+    @Override
+    public String toString() {
+        return this.getClass().getCanonicalName() + ": " + bundle.getSymbolicName();
+    }
 }

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/util/ClassLoaderResourceLoader.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/util/ClassLoaderResourceLoader.java?rev=1601042&r1=1601041&r2=1601042&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/util/ClassLoaderResourceLoader.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/util/ClassLoaderResourceLoader.java
Sat Jun  7 00:11:49 2014
@@ -46,4 +46,9 @@ public final class ClassLoaderResourceLo
     public Enumeration<URL> getResources(final String name) throws IOException {
         return loader.getResources(name);
     }
+
+    @Override
+    public String toString() {
+        return this.getClass().getCanonicalName() + '(' + loader.toString() + ')';
+    }
 }



Mime
View raw message