logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattsic...@apache.org
Subject svn commit: r1580584 - /logging/log4j/log4j2/trunk/src/site/xdoc/manual/webapp.xml
Date Sun, 23 Mar 2014 19:55:14 GMT
Author: mattsicker
Date: Sun Mar 23 19:55:13 2014
New Revision: 1580584

URL: http://svn.apache.org/r1580584
Log:
Add warning to webapp docs about using shutdown hook.

Modified:
    logging/log4j/log4j2/trunk/src/site/xdoc/manual/webapp.xml

Modified: logging/log4j/log4j2/trunk/src/site/xdoc/manual/webapp.xml
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/src/site/xdoc/manual/webapp.xml?rev=1580584&r1=1580583&r2=1580584&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/src/site/xdoc/manual/webapp.xml (original)
+++ logging/log4j/log4j2/trunk/src/site/xdoc/manual/webapp.xml Sun Mar 23 19:55:13 2014
@@ -33,6 +33,15 @@
         on whether your application is a <a href="#Servlet-3.0">Servlet 3.0 or newer</a>
or
         <a href="#Servlet-2.5">Servlet 2.5</a> web application.
       </p>
+      <p class="big-red">
+        It is important to note that you should add <code>shutdownHook=&quot;disable&quot;</code>
to your root
+        configuration element to avoid memory leaks. For example:
+      </p>
+      <pre class="prettyprint"><![CDATA[
+<Configuration shutdownHook="disable">
+    <!-- ... -->
+</Configuration>
+      ]]></pre>
       <a name="Servlet-3.0" />
       <subsection name="Servlet 3.0 and Newer Web Applications">
         <p>
@@ -204,7 +213,7 @@
           the web application's context path in the name of a Rolling File Appender. See
WebLookup in
           <a href="./lookups.html#WebLookup">Lookups</a> for more information.
         </p>
-      </subsection>        
+      </subsection>
       <a name="JspLogging" />
       <subsection name="JavaServer Pages Logging">
         <p>



Mime
View raw message