1
0

Prefixed environmental diagnostic content with [ENV].

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@377197 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Burrell Donkin
2006-02-12 16:18:07 +00:00
parent 5d48ac1008
commit 6f52ab12b1

View File

@@ -669,22 +669,22 @@ public class LogFactoryImpl extends LogFactory {
* @return the value associated with the property, or null. * @return the value associated with the property, or null.
*/ */
private String getConfigurationValue(String property) { private String getConfigurationValue(String property) {
logDiagnostic("Trying to get configuration for item " + property); logDiagnostic("[ENV] Trying to get configuration for item " + property);
logDiagnostic("Looking for attribute " + property); logDiagnostic("[ENV] Looking for attribute " + property);
Object valueObj = getAttribute(property); Object valueObj = getAttribute(property);
if (valueObj != null) { if (valueObj != null) {
logDiagnostic("Found value [" + valueObj + "] for " + property); logDiagnostic("[ENV] Found value [" + valueObj + "] for " + property);
return valueObj.toString(); return valueObj.toString();
} }
logDiagnostic("Looking for system property " + property); logDiagnostic("[ENV] Looking for system property " + property);
try { try {
String value = System.getProperty(property); String value = System.getProperty(property);
logDiagnostic("Found value [" + value + "] for " + property); logDiagnostic("[ENV] Found value [" + value + "] for " + property);
return value; return value;
} catch (SecurityException e) { } catch (SecurityException e) {
logDiagnostic("Security prevented reading system property."); logDiagnostic("[ENV] Security prevented reading system property.");
} }
return null; return null;