You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jim Lynch <jw...@sgi.com> on 2003/06/26 15:40:40 UTC

Log4j problem mixing 2 apps

I've two different applications running, using log4j to log.  For some
reason output destined for one app gets in the others log.  It looks
like only one application can have a log at a time.  

What might I have done to cause this problem? It looks like the
application that has been deployed last gets all the log messages.

Thanks,
Jim.

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


Re: Log4j problem mixing 2 apps

Posted by Vladimer Shioshvili <vs...@qrc.com>.
easiest solution is to use log4j in the context scope, instead of 
application scope. meaning that you put your log4j.jar file in web-inf/lib 
of every context, instead of some central location. each application will 
have to configure the logger separately after that, and you will have no 
interference.

cheers,
Vlad

At 09:40 AM 6/26/2003, you wrote:
>I've two different applications running, using log4j to log.  For some
>reason output destined for one app gets in the others log.  It looks
>like only one application can have a log at a time.
>
>What might I have done to cause this problem? It looks like the
>application that has been deployed last gets all the log messages.
>
>Thanks,
>Jim.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

________________
Vladimer Shioshvili

QRC Division of Macro International Inc.
7315 Wisconsin Avenue, Suite 400W
Bethesda, MD 20814

Phone: (301) 657 3077 ext. 155 


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