tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric B." <ebe...@hotmail.com>
Subject Re: Log4j vs JULI configuration discrepancy
Date Wed, 12 Aug 2009 02:21:29 GMT
"Christopher Schultz" <chris@christopherschultz.net> wrote in message 
news:4A8223C7.1030006@christopherschultz.net...
>> 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
> log4j.properties which are being used for the webapp instead of the
> globally-loaded log4j classes and log4j.properties 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?

Thanks,

Eric




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


Mime
View raw message