You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by mi...@apache.org on 2016/03/22 12:55:54 UTC
[30/41] logging-log4j2 git commit: Add LogManager.shutdown()
alternatives in migration guide
Add LogManager.shutdown() alternatives in migration guide
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/4ee4e28d
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/4ee4e28d
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/4ee4e28d
Branch: refs/heads/gelf-layout-gc-free
Commit: 4ee4e28da5d1e7365a399de0489a01abcabcc616
Parents: 49a2f2c
Author: Matt Sicker <bo...@gmail.com>
Authored: Fri Mar 18 12:19:50 2016 -0500
Committer: Matt Sicker <bo...@gmail.com>
Committed: Fri Mar 18 12:19:50 2016 -0500
----------------------------------------------------------------------
src/site/xdoc/manual/migration.xml | 11 +++++++++++
1 file changed, 11 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/4ee4e28d/src/site/xdoc/manual/migration.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/manual/migration.xml b/src/site/xdoc/manual/migration.xml
index bd05838..37fe516 100644
--- a/src/site/xdoc/manual/migration.xml
+++ b/src/site/xdoc/manual/migration.xml
@@ -72,6 +72,17 @@
Remove calls to <code>org.apache.log4j.LogManager.shutdown()</code>, they are not needed in version 2
because the Log4j Core now automatically adds a JVM shutdown hook on start up to perform any Core
clean ups.
+ <ol>
+ <li>
+ Starting in Log4j 2.1, you can specify a custom
+ <a class="javadoc" href="../log4j-core/apidocs/org/apache/logging/log4j/core/util/ShutdownCallbackRegistry.html">ShutdownCallbackRegistry</a>
+ to override the default JVM shutdown hook strategy.
+ </li>
+ <li>
+ Starting in Log4j 2.6, you can now use <code>org.apache.logging.log4j.LogManager.shutdown()</code>
+ to initiate shutdown manually.
+ </li>
+ </ol>
</li>
<li>
Calls to <code>org.apache.log4j.Logger.setLevel()</code> or similar methods are not supported in the API.