you need to use log4j in your hello.jsp, and not the log(String) method
Filip
fredk2 wrote:
Many thanks for the response. For some reasons I did not see it over the (hot
and humid) weekend.
yes - I did those steps and it does work well ... although in my case I
cannot use TC_HOME (read-only)
Many thanks for the response. For some reasons I did not see it over the (hot
and humid) weekend.
yes - I did those steps and it does work well ... although in my case I
cannot use TC_HOME (read-only) for the log4j.properties (and log4j.jar) - I
need it in TC_BASE so it can be customized.
In ei
for tomcat container logging, its easy
1. put log4j.jar in TC_HOME/lib
2. put log4j.properties in TC_HOME/lib
3. compile the extras
ant -f extras.xml
4. replace TC_HOME/bin/tomcat-juli.jar with the one compiled from step 3
5. put extras//tomcat-juli-adapters.jar in TC_HOME/lib
and that's i
I would like both one /lib/log4j.properties for the main Tomcat
container logging and another log4j for each web apps - where you set its
log filename and rotation etc...
The tomcat logging would be of interest to an admin and the web app logs to
the developer.
Do I make sense?
Tx - Fred
if you want to use log4j in your application only,
then forget everything you read on logging.html
all you need to do is log4j.jar in WEB-INF/lib
log4j.properties in WEB-INF/classes
the steps you are outlining, are converting tomcat from using
java.util.logging to log4j for the container. and y