You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ma...@apache.org on 2014/10/05 20:35:01 UTC

git commit: Update configuration manual regarding shutdown properties.

Repository: logging-log4j2
Updated Branches:
  refs/heads/master 4e56b4340 -> 4bfb0952f


Update configuration manual regarding shutdown properties.


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

Branch: refs/heads/master
Commit: 4bfb0952fd0a4fd2ae76a9ce6a727c69eae1b06e
Parents: 4e56b43
Author: Matt Sicker <ma...@apache.org>
Authored: Sun Oct 5 13:32:11 2014 -0500
Committer: Matt Sicker <ma...@apache.org>
Committed: Sun Oct 5 13:32:11 2014 -0500

----------------------------------------------------------------------
 src/site/xdoc/manual/configuration.xml.vm | 23 ++++++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/4bfb0952/src/site/xdoc/manual/configuration.xml.vm
----------------------------------------------------------------------
diff --git a/src/site/xdoc/manual/configuration.xml.vm b/src/site/xdoc/manual/configuration.xml.vm
index 6c001f6..be1e529 100644
--- a/src/site/xdoc/manual/configuration.xml.vm
+++ b/src/site/xdoc/manual/configuration.xml.vm
@@ -1263,6 +1263,7 @@ public class AwesomeTest {
         <subsection name="System Properties">
         <p>
           Below follows a number of system properties that can be used to control Log4j 2 behaviour.
+          Any spaces present in the property name are for visual flow and should be removed.
         </p>
 <table>
   <caption align="top">Log4j 2 System Properties</caption>
@@ -1320,10 +1321,30 @@ public class AwesomeTest {
     </td>
   </tr>
   <tr>
+    <td>log4j.shutdownHookEnabled</td>
+    <td>true</td>
+    <td>
+      Overrides the global flag for whether or not a shutdown hook should be used to stop a <tt>LoggerContext</tt>.
+      By default, this is enabled and can be disabled on a per-configuration basis. When running with the
+      <tt>log4j-web</tt> module, this is automatically disabled.
+    </td>
+  </tr>
+  <tr>
+    <td>log4j.shutdownRegistrationStrategy</td>
+    <!-- deliberately inserted spaces to allow line break -->
+    <td>org.apache.logging .log4j.core.util .DefaultShutdownRegistrationStrategy</td>
+    <td>
+      Fully specified class name of a class implementing
+      <a class="javadoc" href="../log4j-core/apidocs/org/apache/logging/log4j/core/util/ShutdownRegistrationStrategy.html">ShutdownRegistrationStrategy</a>.
+      If specified, an instance of this class is used instead of <tt>DefaultShutdownRegistrationStrategy</tt>.
+      The specified class must have a default constructor.
+    </td>
+  </tr>
+  <tr>
     <td>log4j.Clock</td>
     <td>SystemClock</td>
     <td>
-      Implementation of the <tt>org.apache.logging.log4j.core.helpers.Clock</tt>
+      Implementation of the <tt>org.apache.logging.log4j.core.util.Clock</tt>
       interface that is used for timestamping the log events.
       <br />
       By default, <tt>System.currentTimeMillis</tt> is called on every log event.