Improved diagnostics
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@374538 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1341,6 +1341,13 @@ public abstract class LogFactory {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
logDiagnostic("Extension directories: " + System.getProperty("java.ext.dir"));
|
||||
logDiagnostic("Application classpath: " + System.getProperty("java.class.path"));
|
||||
} catch(SecurityException ex) {
|
||||
logDiagnostic("Security setting prevent interrogation of system classpaths.");
|
||||
}
|
||||
|
||||
String className = clazz.getName();
|
||||
ClassLoader classLoader;
|
||||
ClassLoader systemClassLoader;
|
||||
|
||||
@@ -840,6 +840,13 @@ public class LogFactoryImpl extends LogFactory {
|
||||
ClassLoader currentCL = getBaseClassLoader();
|
||||
|
||||
for(;;) {
|
||||
// Loop through the classloader hierarchy trying to find
|
||||
// a viable classloader.
|
||||
logDiagnostic(
|
||||
"Trying to load "
|
||||
+ logAdapterClassName
|
||||
+ " from classloader "
|
||||
+ objectId(currentCL));
|
||||
try {
|
||||
Class c = Class.forName(logAdapterClassName, true, currentCL);
|
||||
constructor = c.getConstructor(logConstructorSignature);
|
||||
|
||||
Reference in New Issue
Block a user