tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikael Brännström <mikael.brannst...@gmail.com>
Subject java.util.logging in tomcat 6
Date Tue, 07 Apr 2009 19:18:10 GMT
Hi,

I'm trying to configure logging for my web app but the logging output
is sent to 'catalina.yyyy-mm-dd.log' and 'catalina.out' instead of
'myapp.yyyy-mm-dd.log'. How can I control that?

I use java.util.logging in my web app. I have based my
tomcat/conf/logging.properties on the examples in
http://tomcat.apache.org/tomcat-6.0-doc/logging.html and
added/modified the following lines (see below).

Thanks
Mikael

--- my conf/logging.properties ---
handlers = 1catalina.org.apache.juli.FileHandler,
2localhost.org.apache.juli.FileHandler,
3manager.org.apache.juli.FileHandler,
4admin.org.apache.juli.FileHandler,
5host-manager.org.apache.juli.FileHandler,
6myapp.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

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

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

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/myapp].level
= ALL
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/myapp].handlers
= 6myapp.org.apache.juli.FileHandler

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


Mime
View raw message