commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r377152 - /jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/LogFactory.java
Date Sun, 12 Feb 2006 11:12:14 GMT
Author: rdonkin
Date: Sun Feb 12 03:12:11 2006
New Revision: 377152

URL: http://svn.apache.org/viewcvs?rev=377152&view=rev
Log:
Added content prefixes for LogFactory bootstrap diagnostics. Also added message to indicate
when the bootstrap has been completed.

Modified:
    jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/LogFactory.java

Modified: jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/LogFactory.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/LogFactory.java?rev=377152&r1=377151&r2=377152&view=diff
==============================================================================
--- jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/LogFactory.java
(original)
+++ jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/LogFactory.java
Sun Feb 12 03:12:11 2006
@@ -1355,10 +1355,10 @@
         }
         
         try {
-            logDiagnostic("Extension directories: " + System.getProperty("java.ext.dir"));
-            logDiagnostic("Application classpath: " + System.getProperty("java.class.path"));
+            logDiagnostic("[ENV] Extension directories: " + System.getProperty("java.ext.dir"));
+            logDiagnostic("[ENV] Application classpath: " + System.getProperty("java.class.path"));
         } catch(SecurityException ex) {
-            logDiagnostic("Security setting prevent interrogation of system classpaths.");
+            logDiagnostic("[ENV] Security setting prevent interrogation of system classpaths.");
         }
         
         String className = clazz.getName();
@@ -1370,24 +1370,24 @@
         } catch(SecurityException ex) {
             // not much useful diagnostics we can print here!
             logDiagnostic(
-                "Security forbids determining the classloader for " + className);
+                "[ENV] Security forbids determining the classloader for " + className);
             return;
         }
 
         logDiagnostic(
-            "Class " + className + " was loaded via classloader "
+            "[ENV] Class " + className + " was loaded via classloader "
             + objectId(classLoader));
             
         try {
             systemClassLoader = ClassLoader.getSystemClassLoader();
         } catch(SecurityException ex) {
             logDiagnostic(
-                "Security forbids determining the system classloader.");
+                "[ENV] Security forbids determining the system classloader.");
             return;
         }
 
         if (classLoader != null) {
-            StringBuffer buf = new StringBuffer("ClassLoader tree:");
+            StringBuffer buf = new StringBuffer("[ENV] ClassLoader tree:");
             for(;;) {
                 buf.append(objectId(classLoader));
                 if (classLoader == systemClassLoader) {
@@ -1456,6 +1456,6 @@
         initDiagnostics();
         logClassLoaderTree(LogFactory.class);
         factories = createFactoryStore();
-
+        logDiagnostic("BOOTSTRAP COMPLETED");
     }
 }



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


Mime
View raw message