You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ma...@apache.org on 2014/05/26 06:44:00 UTC
svn commit: r1597514 -
/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/visitors/PluginAttributeVisitor.java
Author: mattsicker
Date: Mon May 26 04:44:00 2014
New Revision: 1597514
URL: http://svn.apache.org/r1597514
Log:
Add debug logging to PluginAttributeVisitor.
Modified:
logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/visitors/PluginAttributeVisitor.java
Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/visitors/PluginAttributeVisitor.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/visitors/PluginAttributeVisitor.java?rev=1597514&r1=1597513&r2=1597514&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/visitors/PluginAttributeVisitor.java (original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/visitors/PluginAttributeVisitor.java Mon May 26 04:44:00 2014
@@ -40,6 +40,8 @@ public class PluginAttributeVisitor exte
final String replacedValue = this.substitutor.replace(event, rawValue);
final String rawDefaultValue = this.annotation.defaultValue();
final String replacedDefaultValue = this.substitutor.replace(event, rawDefaultValue);
- return convert(replacedValue, replacedDefaultValue);
+ final Object value = convert(replacedValue, replacedDefaultValue);
+ LOGGER.debug("Attribute({}=\"{}\"", name, value);
+ return value;
}
}