1
0

Fix bug introduced by recent changes. Thanks to Brian Stansberry for the patch.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@180287 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Simon Kitching
2005-06-06 10:33:37 +00:00
parent d7f774a5bb
commit ca0188c41e

View File

@@ -722,6 +722,15 @@ public class LogFactoryImpl extends LogFactory {
logAdapterClass = loadClass(logAdapterClassName);
constructor = logAdapterClass.getConstructor(logConstructorSignature);
logAdapter = (Log) constructor.newInstance(params);
} catch (ClassNotFoundException e) {
// We were unable to find the log adapter
String msg = "" + e.getMessage();
logDiagnostic(
"The log adapter "
+ logAdapterClassName
+ " is not available: "
+ msg.trim());
return null;
} catch (NoClassDefFoundError e) {
// We were able to load the adapter but it had references to
// other classes that could not be found. This simply means that