tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashley Hollands" <ashl...@xsdi.com>
Subject RE: Logging Problem on Upgrade to Tomcat 6
Date Wed, 22 Aug 2007 18:04:28 GMT
Thanks for the reply Filip

> if you want a global log4j (instead of tomcat's own framework)...

I have configured Tomcat to use Log4J at the top-level using
the documentation you recommend no problem, but it doesn't solve
my problem.

What I want is for the Exception to get logged at the web application
level (I'm not bothered whether it also gets logged at the Tomcat level
or not - Using Tomcat 5.5, it used to get logged at the web application
level and not at the Tomcat level at all).

Ashley

-----Original Message-----
From: Filip Hanik - Dev Lists [mailto:devlists@hanik.com] 
Sent: 22 August 2007 18:03
To: Tomcat Users List
Subject: Re: Logging Problem on Upgrade to Tomcat 6

if you want a global log4j (instead of tomcat's own framework)
http://tomcat.apache.org/tomcat-6.0-doc/logging.html
then you will need to be tomcat-juli.jar and tomcat-juli-adapters.jar as
described in the docs,

let me know if you need more clarification Filip

Ashley Hollands wrote:
> Hi
>
> I have recently upgraded from Tomcat 5.5 to 6.0 and from Java 1.5 to 
> 6.
>
> I use Log4J for all my web application logging and have discovered 
> that after the upgrade, any exceptions thrown in the web application 
> are not logged to my web application log, but to the top-level Tomcat 
> log.
>
> Does anybody know how I can make sure any java.lang.Exceptions thrown 
> are logged to the web application log? It used to work fine with the 
> previous versions of Tomcat (4, 5 and 5.5).
>
> My web application log4j.properties file is as follows if that helps:
>
> log4j.rootCategory=ERROR, logfile
>
> log4j.appender.logfile=org.apache.log4j.DailyRollingFileAppender
> log4j.appender.logfile.DatePattern='.'yyyy-MM-dd
> log4j.appender.logfile.File=/logs/tomcat/webapp.log
> log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
> log4j.appender.logfile.layout.ConversionPattern=%d %p [%c] - %m%n
>
> Thanks
>
> Ashley
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, 
> e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>   


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


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


Mime
View raw message