You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by nd...@apache.org on 2006/07/26 06:50:56 UTC
svn commit: r425619 -
/incubator/harmony/enhanced/classlib/trunk/modules/logging/src/main/java/java/util/logging/LogManager.java
Author: ndbeyer
Date: Tue Jul 25 21:50:56 2006
New Revision: 425619
URL: http://svn.apache.org/viewvc?rev=425619&view=rev
Log:
LogManager static init wasn't calling public readConfiguration method, so a custom LogManager wasn't getting setup correctly.
This was found while working with Tomcat 5.5, which override LogManager with a custom implementation called JULI.
Modified:
incubator/harmony/enhanced/classlib/trunk/modules/logging/src/main/java/java/util/logging/LogManager.java
Modified: incubator/harmony/enhanced/classlib/trunk/modules/logging/src/main/java/java/util/logging/LogManager.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/logging/src/main/java/java/util/logging/LogManager.java?rev=425619&r1=425618&r2=425619&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/logging/src/main/java/java/util/logging/LogManager.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/logging/src/main/java/java/util/logging/LogManager.java Tue Jul 25 21:50:56 2006
@@ -183,7 +183,7 @@
manager.loggers.put("", manager.root); //$NON-NLS-1$
// read configuration
try {
- manager.readConfigurationImpl();
+ manager.readConfiguration();
} catch (Exception e) {
e.printStackTrace();
}
@@ -413,9 +413,7 @@
className);
return clazz.newInstance();
} catch (Exception e) {
- System.err
- .println("Cannot get instance for class name:" + className); //$NON-NLS-1$
- System.err.println("Caused by " + e.toString()); //$NON-NLS-1$
+ e.printStackTrace();
return null;
}