You might want to check the version of Tomcat.  This issue sounds
terribly similar to the one that was in jBoss 4.x before 4.02.  If I
remember correctly the cause was inherited from the version of Tomcat
that jBoss was using.  At one point the logs were getting jumbled
together into the webapp log file (even the server logs).  You might
want to investigate how they solved that problem... you probably need
the same solution.

Bruno Melloni
Director of Software Architecture
Akuratus Corporation
1333 N. Stemmons Fwy, Suite 110
Dallas, Texas 75207
Phone: 469.227.0920
Fax: 469.227.0967
[EMAIL PROTECTED]
www.akuratus.com

>>> [EMAIL PROTECTED] 6/13/2005 9:01:07 AM >>>
Quoting Anand Vijay <[EMAIL PROTECTED]>:

> Hi
>
> but it logs system wide but not the application
>

You said you are using Tomcat, right?  And do you have struts in
WEB-INF/lib
along with log4j.jar and commons-logging.jar?  You should also have
your config
file in WEB-INF/classes.  There is no reason I can think of that this
wouldn't
provide per-webapp logging.  In fact, it is quite simply impossible for
2
webapps to see each other if your libraries are all stored in
WEB-INF/lib.  I
suggest re-visiting your webapp structure to verify that you have
things set up
properly.

Jake

> ----- Original Message -----
> From: "Jacob Kjome" <[EMAIL PROTECTED]>
> To: "Log4J Users List" <[email protected]>; "Anand
Vijay"
> <[EMAIL PROTECTED]>
> Sent: Monday, June 13, 2005 7:20 PM
> Subject: Re: Using with Struts
>
>
> >
> > So put log4j.jar and commons-logging.jar in your WEB-INF/lib.  Are
you
> having
> > problems with this setup?  It should work fine.
> >
> > Jake
> >
> > Quoting Anand Vijay <[EMAIL PROTECTED]>:
> >
> > > Hi All
> > >
> > > How to use log4j with tomcat 4.x and struts? . I would like to
log only
> one
> > > of the webapps..
> > >
> > > Regards
> > > Vijay
> >
> >
> >
>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to