Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

problem when using log4j within a Tomcat web app

Eqbal

2007-01-30

Replies:

Hi,

I have configured a web application to use log4j for
logging information (using log4j.properties). I am
using the commons logging API calls in my class files.
I am using %F and %L in my pattern layout. When I run
my class file as stand alone in Eclipse I get proper
logging information with the class filename and line
number output to the console. But when I build my web
application war file(using ant) and deploy it to
Tomcat I get a question mark in place of %F and %L. I
do get the method name right (using %M). I searched
the archive for log4j and posted this question there,
but was asked to post here instead. I also searched
the archive for Tomcat but couldn't find anything.
Versions:
Tomcat 5.5.17
log4j 1.2.14
commons-logging 1.0.4
jdk 1.5
struts 1.3.5

Any help is greatly appreciated.

Thanks.



____________________________________________________________________________________
Yahoo! Music Unlimited
Access over 1 million songs.
http://music.yahoo.com/unlimited

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.