tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r810958 - /tomcat/trunk/webapps/docs/logging.xml
Date Thu, 03 Sep 2009 14:12:28 GMT
Author: markt
Date: Thu Sep  3 14:12:28 2009
New Revision: 810958

URL: http://svn.apache.org/viewvc?rev=810958&view=rev
Log:
More logging docs improvements:
- remove some whitespace
- reduce width slightly
- add note about preventing zero length j.u.l files when using log4j
- logs dir is relative to catalina.base, not catalina.home

Modified:
    tomcat/trunk/webapps/docs/logging.xml

Modified: tomcat/trunk/webapps/docs/logging.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/logging.xml?rev=810958&r1=810957&r2=810958&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/logging.xml (original)
+++ tomcat/trunk/webapps/docs/logging.xml Thu Sep  3 14:12:28 2009
@@ -136,8 +136,10 @@
   <p>
     Example logging.properties file to be placed in $CATALINA_BASE/conf:
     <source>
-handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler,
\
-           3manager.org.apache.juli.FileHandler, 4admin.org.apache.juli.FileHandler, \
+handlers = 1catalina.org.apache.juli.FileHandler, \
+           2localhost.org.apache.juli.FileHandler, \
+           3manager.org.apache.juli.FileHandler, \
+           4admin.org.apache.juli.FileHandler, \
            java.util.logging.ConsoleHandler
 
 .handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
@@ -227,13 +229,13 @@
         <li>Create a file called log4j.properties with the following content 
             and save it into $CATALINA_HOME/lib.
           <source>
-            log4j.rootLogger=INFO, R <br />
-            log4j.appender.R=org.apache.log4j.RollingFileAppender <br />
-            log4j.appender.R.File=${catalina.home}/logs/tomcat.log <br />
-            log4j.appender.R.MaxFileSize=10MB <br />
-            log4j.appender.R.MaxBackupIndex=10 <br />
-            log4j.appender.R.layout=org.apache.log4j.PatternLayout <br />
-            log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
+log4j.rootLogger=INFO, R <br />
+log4j.appender.R=org.apache.log4j.RollingFileAppender <br />
+log4j.appender.R.File=${catalina.base}/logs/tomcat.log <br />
+log4j.appender.R.MaxFileSize=10MB <br />
+log4j.appender.R.MaxBackupIndex=10 <br />
+log4j.appender.R.layout=org.apache.log4j.PatternLayout <br />
+log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
           </source>
         </li>
 
@@ -250,6 +252,8 @@
         <li>Place <code>output/extras/tomcat-juli-adapters.jar</code> in

             $CATALINA_HOME/lib.</li>
 
+        <li>Delete <code>$CATALINA_BASE/conf/logging.properties</code>
to
+            prevent java.util.logging generating zero length log files.</li>
         <li>Start Tomcat</li>
       </ol>
     </p>
@@ -272,9 +276,9 @@
       described until a future version of log4j allows this convention.
       
       <source>
-        log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=DEBUG<br
/>
-        log4j.logger.org.apache.catalina.core=DEBUG<br />
-        log4j.logger.org.apache.catalina.session=DEBUG<br />
+log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=DEBUG<br />
+log4j.logger.org.apache.catalina.core=DEBUG<br />
+log4j.logger.org.apache.catalina.session=DEBUG<br />
       </source>
 
       Be warned a level of DEBUG will produce megabytes of logging and slow



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message