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,7 +722,16 @@ public class LogFactoryImpl extends LogFactory {
logAdapterClass = loadClass(logAdapterClassName); logAdapterClass = loadClass(logAdapterClassName);
constructor = logAdapterClass.getConstructor(logConstructorSignature); constructor = logAdapterClass.getConstructor(logConstructorSignature);
logAdapter = (Log) constructor.newInstance(params); logAdapter = (Log) constructor.newInstance(params);
} catch (NoClassDefFoundError e) { } 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 // We were able to load the adapter but it had references to
// other classes that could not be found. This simply means that // other classes that could not be found. This simply means that
// the underlying logger library could not be found. // the underlying logger library could not be found.