logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1391597 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java
Date Fri, 28 Sep 2012 19:04:07 GMT
Author: ggregory
Date: Fri Sep 28 19:04:07 2012
New Revision: 1391597

URL: http://svn.apache.org/viewvc?rev=1391597&view=rev
Log:
Renamed org.apache.logging.log4j.core.LoggerContext's contextName toname.

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

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java?rev=1391597&r1=1391596&r2=1391597&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java
Fri Sep 28 19:04:07 2012
@@ -50,7 +50,7 @@ public class LoggerContext implements or
 
     private Object externalContext = null;
 
-    private final String contextName;
+    private final String name;
 
     private final URI configLocation;
 
@@ -98,7 +98,7 @@ public class LoggerContext implements or
      * @param configLocn The location of the configuration as a URI.
      */
     public LoggerContext(String name, Object externalContext, URI configLocn) {
-        this.contextName = name;
+        this.name = name;
         this.externalContext = externalContext;
         this.configLocation = configLocn;
     }
@@ -111,7 +111,7 @@ public class LoggerContext implements or
      * @param configLocn The configuration location.
      */
     public LoggerContext(String name, Object externalContext, String configLocn) {
-        contextName = name;
+        this.name = name;
         this.externalContext = externalContext;
         if (configLocn != null) {
             URI uri;
@@ -253,8 +253,8 @@ public class LoggerContext implements or
      *  Reconfigure the context.
      */
     public synchronized void reconfigure() {
-        logger.debug("Reconfiguration started for context " + contextName);
-        Configuration instance = ConfigurationFactory.getInstance().getConfiguration(contextName,
configLocation);
+        logger.debug("Reconfiguration started for context " + name);
+        Configuration instance = ConfigurationFactory.getInstance().getConfiguration(name,
configLocation);
         setConfiguration(instance);
         /*instance.start();
         Configuration old = setConfiguration(instance);
@@ -287,7 +287,7 @@ public class LoggerContext implements or
      * @param reconfigurable The Configuration that can be reconfigured.
      */
     public synchronized void onChange(Reconfigurable reconfigurable) {
-        logger.debug("Reconfiguration started for context " + contextName);
+        logger.debug("Reconfiguration started for context " + name);
         Configuration config = reconfigurable.reconfigure();
         if (config != null) {
             setConfiguration(config);



Mime
View raw message