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 2016/07/23 01:30:31 UTC

[4/6] logging-log4j2 git commit: [LOG4J2-1472] Make org.apache.logging.log4j.core.LoggerContext implement AutoCloseable.

[LOG4J2-1472] Make org.apache.logging.log4j.core.LoggerContext implement
AutoCloseable.

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

Branch: refs/heads/StyledXException
Commit: a141cc0c260f58203435f4d16a70f595146d5a61
Parents: afc7ccb
Author: Gary Gregory <gg...@apache.org>
Authored: Wed Jul 20 21:03:34 2016 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Wed Jul 20 21:03:34 2016 -0700

----------------------------------------------------------------------
 .../java/org/apache/logging/log4j/core/LoggerContext.java     | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/a141cc0c/log4j-core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java
index 6d8c578..63073e6 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java
@@ -16,9 +16,10 @@
  */
 package org.apache.logging.log4j.core;
 
+import static org.apache.logging.log4j.core.util.ShutdownCallbackRegistry.SHUTDOWN_HOOK_MARKER;
+
 import java.beans.PropertyChangeEvent;
 import java.beans.PropertyChangeListener;
-import java.io.Closeable;
 import java.io.File;
 import java.net.URI;
 import java.util.Collection;
@@ -48,15 +49,13 @@ import org.apache.logging.log4j.spi.LoggerRegistry;
 import org.apache.logging.log4j.spi.Terminable;
 import org.apache.logging.log4j.util.PropertiesUtil;
 
-import static org.apache.logging.log4j.core.util.ShutdownCallbackRegistry.*;
-
 /**
  * The LoggerContext is the anchor for the logging system. It maintains a list of all the loggers requested by
  * applications and a reference to the Configuration. The Configuration will contain the configured loggers, appenders,
  * filters, etc and will be atomically updated whenever a reconfigure occurs.
  */
 public class LoggerContext extends AbstractLifeCycle
-        implements org.apache.logging.log4j.spi.LoggerContext, Closeable, Terminable, ConfigurationListener {
+        implements org.apache.logging.log4j.spi.LoggerContext, AutoCloseable, Terminable, ConfigurationListener {
 
     /**
      * Property name of the property change event fired if the configuration is changed.