From a2c9d96e2f297e6175f45a1a416f53dfb13a3c3d Mon Sep 17 00:00:00 2001
From: kkolinko java.util.logging, but uses a few
extensions to allow better flexibility in assigning loggers. The main
differences are:
-
+
22foobar. is a valid
@@ -276,18 +277,21 @@
boolean value..handlers property.java.util.logging.Handler,
- that can be used together with the ones provided by Java.
- The notable one is org.apache.juli.FileHandlerorg.apache.juli.FileHandler supports buffering of the
+
+ There are several additional implementation classes, that can be used
+ together with the ones provided by Java. The notable one is
+ org.apache.juli.FileHandler.
+
+ org.apache.juli.FileHandler supports buffering of the
logs. The buffering is not enabled by default. To configure it, use the
bufferSize property of a handler. The value of 0
uses system default buffering (typically an 8K buffer will be used). A
value of <0 forces a writer flush upon each log write. A
value >0 uses a BufferedOutputStream with the defined
value but note that the system default buffering will also be
- applied.
-
+ applied.
Example logging.properties file to be placed in $CATALINA_BASE/conf: @@ -295,7 +299,6 @@ 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 @@ -316,11 +319,7 @@ handlers = 1catalina.org.apache.juli.FileHandler, \ 3manager.org.apache.juli.FileHandler.level = FINE 3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 3manager.org.apache.juli.FileHandler.prefix = manager. - -4admin.org.apache.juli.FileHandler.level = FINE -4admin.org.apache.juli.FileHandler.directory = ${catalina.base}/logs -4admin.org.apache.juli.FileHandler.prefix = admin. -4admin.org.apache.juli.FileHandler.bufferSize = 16384 +3manager.org.apache.juli.FileHandler.bufferSize = 16384 java.util.logging.ConsoleHandler.level = FINE java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter @@ -339,14 +338,10 @@ org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = \ 3manager.org.apache.juli.FileHandler -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin].level = INFO -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin].handlers = \ - 4admin.org.apache.juli.FileHandler - # For example, set the org.apache.catalina.util.LifecycleBase logger to log # each component that extends LifecycleBase changing state: #org.apache.catalina.util.LifecycleBase.level = FINE - +
@@ -366,7 +361,7 @@ org.apache.juli.FileHandler.prefix = servlet-examples. java.util.logging.ConsoleHandler.level = FINE java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter - +