Hello,
I run several webapps under one instance of tomcat (7.0.21 currently, fwiw),
and each webapp uses JDK logging and needs to log to its own separate log
file. I accomplish this by placing logging.properties in WEB-INF/classes,
and an example of how it's set up is:
handlers =
On 11/10/2011 07:28, Dan Checkoway wrote:
Hello,
I run several webapps under one instance of tomcat (7.0.21 currently, fwiw),
and each webapp uses JDK logging and needs to log to its own separate log
file. I accomplish this by placing logging.properties in WEB-INF/classes,
and an example
Pid,
That's exactly what I tried:
-
handlers = 1catalina.org.apache.juli.FileHandler,
2localhost.org.apache.juli.FileHandler,
3manager.org.apache.juli.FileHandler,
4host-manager.org.apache.juli.FileHandler,
5my-webapp.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
2011/10/11 Dan Checkoway dchecko...@gmail.com:
So...
1. Is it currently possible to do what I'm trying to do? Per-webapp logging
control without using WEB-INF/classes/logging.properties? I could really
use a working example if this is doable.
No it is not possible.
What Pid wrote about
Konstantin,
Thanks very much for the tips. VirtualWebappLoader worked perfectly. For
the record, here's what worked for me:
META-INF/context.xml:
?xml version=1.0 encoding=UTF-8?
Context
Loader className=org.apache.catalina.loader.VirtualWebappLoader