tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: log taglib - setting location of log
Date Tue, 26 Jun 2001 18:52:28 GMT
Hi John

From: "Davidson, John" <>
> I've downloaded the log taglib and I'd like to change where I save the
> logging info to (at present it's {TOMCAT_HOME}/bin/example.log
> How the heck do I do it??  It's driving me mad!

I've just made the following changes to the log tags:-

* The log tags now do not initialise log4j themselves. You can do this
yourself using your own mechanism, via a log4j Servlet or by putting a file in WEB-INF/classes. I use the latter approach in the
example web app as I find it easier.
* Optimised the tags so that the body is not evaluated if log4j has the
logging category or priority disabled.

* Added new <log:fatal> tag for support for the FATAL level of log4j logging

The first change is the most relevant. If you take a look at the latest
example web application, you'll see it puts a file in the
WEB-INF/classes. You can do the same and edit this file to write to whatever
file destination you wish.


Do You Yahoo!?
Get your free address at

View raw message