tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: Servlet API loggin in tomcat 5.5 vs. tomcat 6
Date Mon, 02 Mar 2009 17:05:30 GMT
Hash: SHA1


On 2/27/2009 3:23 PM, Guillaume Cauchon wrote:
> However we realized the logging configuration doesn't seams to be
> working the same way! The same webapp running on 5.5 and 6 doesn't
> produce the same amount of logging: everything that was produced by the
> JspServlet (Servlet API) is missing now; and I guess a lot more is also
> missing, but we didn't saw it yet...
> The logging is based on log4j, using a xml configuration file. We are
> using DOMConfigurator to intitialise and monitor the log4j configuration
> which can be modified at runtime.

So, are you talking about application logging or Tomcat internal
logging? You mentioned the JspServlet, but any logging performed by that
servlet (that is, the actual log messages) is not part of the servlet API.

If you use ServletContext.log(...) you aren't guaranteed (in fact, you
are very unlikely) to use your application's logging mechanism.

> I know the Common Logging if the basis of the whole logging architecture
> in tomcat, is there something I need to know about the tomcat 6 release
> that might be related to this issue?

I'm not sure if there is an appreciable difference between logging
configuration in Tomcat 5.5 and 6.0. Can you tell us what you expected
and what actually happens? No log files created? No log messages
generated? Log level is different than expected? You didn't give any
real details except for "we upgraded and now it doesn't work". :(

- -chris
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message