You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2015/09/22 22:57:15 UTC

logging-log4j2 git commit: Better error message.

Repository: logging-log4j2
Updated Branches:
  refs/heads/master 0864d6e5a -> fee199f66


Better error message.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/fee199f6
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/fee199f6
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/fee199f6

Branch: refs/heads/master
Commit: fee199f66690d4aa062ee9501e99b2e7b91b899d
Parents: 0864d6e
Author: ggregory <gg...@apache.org>
Authored: Tue Sep 22 13:57:12 2015 -0700
Committer: ggregory <gg...@apache.org>
Committed: Tue Sep 22 13:57:12 2015 -0700

----------------------------------------------------------------------
 .../org/apache/logging/log4j/core/config/xml/XmlConfiguration.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/fee199f6/log4j-core/src/main/java/org/apache/logging/log4j/core/config/xml/XmlConfiguration.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/xml/XmlConfiguration.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/xml/XmlConfiguration.java
index 5a80a12..aac5ca8 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/xml/XmlConfiguration.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/xml/XmlConfiguration.java
@@ -239,7 +239,7 @@ public class XmlConfiguration extends AbstractConfiguration implements Reconfigu
         constructHierarchy(rootNode, rootElement);
         if (status.size() > 0) {
             for (final Status s : status) {
-                LOGGER.error("Error processing element {}: {}", s.name, s.errorType);
+                LOGGER.error("Error processing element {} ({}): {}", s.name, s.element, s.errorType);
             }
             return;
         }