tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric B." <>
Subject Re: Log4j vs JULI configuration discrepancy
Date Wed, 12 Aug 2009 02:21:29 GMT
"Christopher Schultz" <> wrote in message
>> My webapp uses log4j to log data to stdout.  When using Juli (in the 
>> default
>> configuration), everything that is displayed in stdout is logged to
>> catalina.out.  However, when I switch to log4j, this doesn't seem to be 
>> the
>> case; only data that is logged by tomcat is logged to my catalina.out;
>> anything my webapp is logging to stdout isn't captured in the file.
> How many log4j.jar files od you have, and where are they? The behavior
> you describe sounds like your webapp has its own copy of log4j.jar AND
> which are being used for the webapp instead of the
> globally-loaded log4j classes and file.

Yes - that's exactly the case.  The webapp has its own self-contained 
log4j.jar and log4j.xml.  I assumed that might be part of the cause, however 
I don't understand why when using Juli anything that webapp's log4j logs to 
Stdout gets logged to a file, however, when using log4j with tomcat this 
behaviour isn't replicated.

Is there a reason for that?



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

View raw message