logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1514949 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/BaseConfiguration.java
Date Sat, 17 Aug 2013 05:33:19 GMT
Author: ggregory
Date: Sat Aug 17 05:33:19 2013
New Revision: 1514949

URL: http://svn.apache.org/r1514949
Log:
[LOG4J2-353] Use consistent conventions in configuration files. Use CamelCase for element
names.

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/BaseConfiguration.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/BaseConfiguration.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/BaseConfiguration.java?rev=1514949&r1=1514948&r2=1514949&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/BaseConfiguration.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/BaseConfiguration.java
Sat Aug 17 05:33:19 2013
@@ -192,7 +192,7 @@ public class BaseConfiguration extends A
             if (child.getObject() == null) {
                 continue;
             }
-            if (child.getName().equalsIgnoreCase("properties")) {
+            if (child.getName().equalsIgnoreCase("Properties")) {
                 if (tempLookup == subst.getVariableResolver()) {
                     subst.setVariableResolver((StrLookup) child.getObject());
                 } else {
@@ -204,11 +204,11 @@ public class BaseConfiguration extends A
                 final StrLookup lookup = map == null ? null : new MapLookup(map);
                 subst.setVariableResolver(new Interpolator(lookup));
             }
-            if (child.getName().equalsIgnoreCase("appenders")) {
+            if (child.getName().equalsIgnoreCase("Appenders")) {
                 appenders = (ConcurrentMap<String, Appender>) child.getObject();
             } else if (child.getObject() instanceof Filter) {
                 addFilter((Filter) child.getObject());
-            } else if (child.getName().equalsIgnoreCase("loggers")) {
+            } else if (child.getName().equalsIgnoreCase("Loggers")) {
                 final Loggers l = (Loggers) child.getObject();
                 loggers = l.getMap();
                 setLoggers = true;



Mime
View raw message