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/06/22 22:53:13 UTC
logging-log4j2 git commit: Add method
org.apache.logging.log4j.core.impl.Log4jContextFactory.getShutdownCallbackRegistry().
Repository: logging-log4j2
Updated Branches:
refs/heads/master a0621b3d4 -> d517ec91a
Add method
org.apache.logging.log4j.core.impl.Log4jContextFactory.getShutdownCallbackRegistry().
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/d517ec91
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/d517ec91
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/d517ec91
Branch: refs/heads/master
Commit: d517ec91aac129df5f39186b5ac6456e9c2c32f6
Parents: a0621b3
Author: ggregory <gg...@apache.org>
Authored: Mon Jun 22 13:53:08 2015 -0700
Committer: ggregory <gg...@apache.org>
Committed: Mon Jun 22 13:53:08 2015 -0700
----------------------------------------------------------------------
.../logging/log4j/core/impl/Log4jContextFactory.java | 11 +++++++++++
1 file changed, 11 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d517ec91/log4j-core/src/main/java/org/apache/logging/log4j/core/impl/Log4jContextFactory.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/impl/Log4jContextFactory.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/impl/Log4jContextFactory.java
index 3b07198..34f47ce 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/impl/Log4jContextFactory.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/impl/Log4jContextFactory.java
@@ -217,6 +217,16 @@ public class Log4jContextFactory implements LoggerContextFactory, ShutdownCallba
return selector;
}
+ /**
+ * Returns the ShutdownCallbackRegistry
+ *
+ * @return the ShutdownCallbackRegistry
+ * @since 2.4
+ */
+ public ShutdownCallbackRegistry getShutdownCallbackRegistry() {
+ return shutdownCallbackRegistry;
+ }
+
/**
* Removes knowledge of a LoggerContext.
*
@@ -233,4 +243,5 @@ public class Log4jContextFactory implements LoggerContextFactory, ShutdownCallba
public Cancellable addShutdownCallback(final Runnable callback) {
return SHUTDOWN_HOOK_ENABLED ? shutdownCallbackRegistry.addShutdownCallback(callback) : null;
}
+
}