tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Schildbach <andr...@schildbach.de>
Subject per-webapp logging problem with Tomcat 5.5
Date Sat, 25 Feb 2006 23:15:39 GMT
Hello everyone,

I despair of configuring per-webapp logging for Tomcat 5.5, something 
that was easily possible with swallowOutput on pre-5.5 Tomcats.

I've got 2 hosts (app1.de, app2.de), containing one context each. In 
addition, there is also the localhost context from the example server.xml.

My conf/logging.properties looks like this (sorry about the wrapping):


############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################

1catalina.org.apache.juli.FileHandler.level = FINE
1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
1catalina.org.apache.juli.FileHandler.prefix = catalina.

2localhost.org.apache.juli.FileHandler.level = FINE
2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
2localhost.org.apache.juli.FileHandler.prefix = localhost.

3app1.org.apache.juli.FileHandler.level = FINE
3app1.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
3app1.org.apache.juli.FileHandler.prefix = app1.

4app2.org.apache.juli.FileHandler.level = FINE
4app2.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
4app2.org.apache.juli.FileHandler.prefix = app2.

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = 
java.util.logging.SimpleFormatter

############################################################
# Facility specific properties.
# Provides extra control for each logger.
############################################################

.handlers = 1catalina.org.apache.juli.FileHandler, 
java.util.logging.ConsoleHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 
2localhost.org.apache.juli.FileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[app1.de].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[app1.de].handlers = 
3app1.org.apache.juli.FileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[app2.de].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[app2.de].handlers = 
4app2.org.apache.juli.FileHandler


My problem is, there is no logging going to any logfile. What am I doing 
wrong?

Do I need to have unique numbers as a prefix to app1 and app2? (could I 
use 0app1 and 0app2?)

Regards,

Andreas


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


Mime
View raw message