From: kkolinko Date: Wed, 22 Sep 2010 14:48:53 +0000 (+0000) Subject: Improving the documentation for logging configuration in Apache Tomcat X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9b7dec75b0346d1c045e8e2d4b83a93e68d68669;p=tomcat7.0 Improving the documentation for logging configuration in Apache Tomcat git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1000003 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/webapps/docs/logging.xml b/webapps/docs/logging.xml index a0f806326..cf6d37725 100644 --- a/webapps/docs/logging.xml +++ b/webapps/docs/logging.xml @@ -37,22 +37,19 @@

Tomcat uses - Commons Logging - throughout its internal code allowing the - developer to choose a logging configuration that suits their needs, e.g - java.util.logging or - Log4J. + Apache Commons Logging + throughout its internal code. Commons Logging provides Tomcat with the ability to log hierarchically across various log levels without needing to rely on a - particular logging implementation. + particular logging implementation.

By default, only java.util.logging is available for the logs generated by the Tomcat internal loggers, as Tomcat uses a package renamed commons logging implementation which is hardcoded to use java.util.logging. Use of - alternative logging frameworks requires building or downloading the - extras components which include a full + alternative logging frameworks requires building or downloading an + extras component which include a full commons-logging implementation. Instructions for configuring the extras components to enable log4j to be used for Tomcat's internal logging may be found below. @@ -62,12 +59,12 @@ Tomcat no longer uses localhost_log as the runtime exception/stack trace log. These types of error are usually thrown by uncaught exceptions, but are still valuable to the developer. They can now - be found in the stdout log. + be found in the stdout log file (catalina.out).

-
+

The default implementation of java.util.logging provided in the JDK is too @@ -225,7 +222,7 @@ java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

-
+

This section explains how to configure Tomcat to use log4j rather than java.util.logging for all Tomcat's internal logging. The following steps