Hi Charles
Thanks for the help. See below.
Caldarale, Charles R wrote:
The real question is, has the OP read this:
http://tomcat.apache.org/tomcat-6.0-doc/logging.html
(My guess is that actually has been done as well.) Note that most of the log4j
section in the above applies to Tomcat internal logging, not individual webapp
logging, except where noted.
Yes, I had actually read through that, but as you say, the discussion on
individual web application logging is limited.
No, JULI is not log4j; JULI is a more flexible replacement for the somewhat
restrictive JDK logging mechanism. Internally, Tomcat uses commons-logging,
but webapps are free to use whatever they please.
I already knew that.
each web application has its own log4j.properties file
Look for any more global instances of log4j.properties (or log4j.xml) and get
rid of them.
Thanks. will do.
The jar log4j-1.2.14.jar is bundled with the web application
and is located in WEB-INF/lib
Verify that you don't have any instances of a log4j*.jar in Tomcat's lib
directory and that you have no CLASSPATH environment variable set.
Ok. I currently have the log4j-1.2.14.jar file in the WEB-INF/lib
directory. I will remove it.
Do I need to import catalina's version of log4j?
No, especially since Tomcat doesn't use log4j, unless you modify it to do so.
What is the equivalent import statement to enable access to Catalina's
logger functionality?
log4j.appender.archivadebug.File=${catalina.home}/logs/debug.log
Will do.
I'd suggest changing all config lines that refer to debug.log to something
unique for each webapp.
Have you placed any jars in Tomcat's lib directory that are shared across
webapps? If so, and if they are doing any logging, it will use the log4j
config of the first webapp to get there. Better to deploy such libraries with
each webapp rather than introduce such crosstalk.
I do have shared JARs and class files across web apps. This is a
strongly desired feature as the intention is to minimize the memory
footprint of each web app. Is there a way to use shared libs/classes and
have the logging output separate?
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]