1
0

Improved diagnostic message by adding quotes.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@377237 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Burrell Donkin
2006-02-12 20:25:13 +00:00
parent 271a6784d2
commit b03846809e

View File

@@ -640,7 +640,7 @@ public class LogFactoryImpl extends LogFactory {
*/ */
private boolean isLogLibraryAvailable(String name, String classname) { private boolean isLogLibraryAvailable(String name, String classname) {
if (isDiagnosticsEnabled()) { if (isDiagnosticsEnabled()) {
logDiagnostic("Checking for " + name + "."); logDiagnostic("Checking for '" + name + "'.");
} }
try { try {
Log log = createLogFromClass( Log log = createLogFromClass(
@@ -650,18 +650,18 @@ public class LogFactoryImpl extends LogFactory {
if (log == null) { if (log == null) {
if (isDiagnosticsEnabled()) { if (isDiagnosticsEnabled()) {
logDiagnostic("Did not find " + name + "."); logDiagnostic("Did not find '" + name + "'.");
} }
return false; return false;
} else { } else {
if (isDiagnosticsEnabled()) { if (isDiagnosticsEnabled()) {
logDiagnostic("Found " + name + "."); logDiagnostic("Found '" + name + "'.");
} }
return true; return true;
} }
} catch(LogConfigurationException e) { } catch(LogConfigurationException e) {
if (isDiagnosticsEnabled()) { if (isDiagnosticsEnabled()) {
logDiagnostic("Logging system " + name + " is available but not useable."); logDiagnostic("Logging system '" + name + "' is available but not useable.");
} }
return false; return false;
} }