From: kkolinko Date: Thu, 31 Mar 2011 10:43:22 +0000 (+0000) Subject: Improve the logging documentation X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=5a9f3399dbd59334b048887470aea26394d662a5;p=tomcat7.0 Improve the logging documentation git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1087247 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/juli/AsyncFileHandler.java b/java/org/apache/juli/AsyncFileHandler.java index 31895655f..c58050e43 100644 --- a/java/org/apache/juli/AsyncFileHandler.java +++ b/java/org/apache/juli/AsyncFileHandler.java @@ -20,6 +20,23 @@ import java.util.concurrent.LinkedBlockingDeque; import java.util.concurrent.TimeUnit; import java.util.logging.LogRecord; /** + * A {@link FileHandler} implementation that uses a queue of log entries. + * + *

Configuration properties are inherited from the {@link FileHandler} + * class. This class does not add its own configuration properties for the + * logging configuration, but relies on the following system properties + * instead:

+ * + * + * + *

See the System Properties page in the configuration reference of Tomcat.

* * @author Filip Hanik * diff --git a/java/org/apache/juli/FileHandler.java b/java/org/apache/juli/FileHandler.java index cfae91b38..f337d22e1 100644 --- a/java/org/apache/juli/FileHandler.java +++ b/java/org/apache/juli/FileHandler.java @@ -39,8 +39,42 @@ import java.util.logging.SimpleFormatter; /** * Implementation of Handler that appends log messages to a file - * named {prefix}.{date}.{suffix} in a configured directory, with an - * optional preceding timestamp. + * named {prefix}{date}{suffix} in a configured directory. + * + *

The following configuration properties are available:

+ * + * * * @version $Id$ */ diff --git a/webapps/docs/logging.xml b/webapps/docs/logging.xml index 75626efe3..67625806a 100644 --- a/webapps/docs/logging.xml +++ b/webapps/docs/logging.xml @@ -113,9 +113,7 @@

- More details about Tomcat JULI may be found below and in Tomcat Javadoc - for the org.apache.juli - package. + More details about Tomcat JULI may be found below.

@@ -371,6 +369,20 @@ java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

+ +

See the following resources for additional information:

+ +
+
@@ -459,7 +471,11 @@ log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/hos output/extras/tomcat-juli.jar.
  • Place output/extras/tomcat-juli-adapters.jar in - $CATALINA_HOME/lib.
  • + $CATALINA_HOME/lib.
    + Note, that tomcat-juli.jar and + tomcat-juli-adapters.jar go into different + directories. While the first one goes into bin, this + one goes into lib.
  • Delete $CATALINA_BASE/conf/logging.properties to prevent java.util.logging generating zero length log files.