You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by rahul <ra...@amsoft.net> on 2005/09/21 08:15:05 UTC
stop tomcat's logging in application's log
hi,
I am using Log4j in application for logging.
I have placed log4j configuration file(log4j.xml) in my
application's WEB-INF/classes folder.
But the file in which I am taking all logs is filled with tomcat's log
along with my application's log.
Is there any way I can see only my application's log in my log file ?
--RahulJoshi
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: stop tomcat's logging in application's log
Posted by Anto Paul <an...@gmail.com>.
On 9/21/05, rahul <ra...@amsoft.net> wrote:
> log4j.jar is in webapps/MyApp/WEB-INF/lib
>
You might have log4j jar and config files somewhere else in common or
server folders. With TC 5.5.11 I have no problem with my application.
I am developing a sample application that uses log4j(from Spring
framework). If you want it I can send it to you as WAR file for
testing.
NOTE: If you use any framework like Struts,Spring etc.. it will log
into your applications log4j config.
>
> > -----Original Message-----
> > From: Anto Paul [mailto:antopaul@gmail.com]
> > Sent: Wednesday, September 21, 2005 11:55 AM
> > To: Tomcat Users List
> > Subject: Re: stop tomcat's logging in application's log
> >
> >
> > On 9/21/05, rahul <ra...@amsoft.net> wrote:
> > >
> > > hi,
> > >
> > > I am using Log4j in application for logging.
> > > I have placed log4j configuration file(log4j.xml) in my
> > > application's WEB-INF/classes folder.
> > >
> > > But the file in which I am taking all logs is filled with tomcat's log
> > > along with my application's log.
> > >
> > > Is there any way I can see only my application's log in my log file ?
> > >
> >
> > Where is the log4j.jar ?.
> > Some documents are available.
> > http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html
> >
> > http://jakarta.apache.org/tomcat/faq/logging.html
> >
> >
> > --
> > rgds
> > Anto Paul
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
>
>
--
rgds
Anto Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: stop tomcat's logging in application's log
Posted by rahul <ra...@amsoft.net>.
log4j.jar is in webapps/MyApp/WEB-INF/lib
> -----Original Message-----
> From: Anto Paul [mailto:antopaul@gmail.com]
> Sent: Wednesday, September 21, 2005 11:55 AM
> To: Tomcat Users List
> Subject: Re: stop tomcat's logging in application's log
>
>
> On 9/21/05, rahul <ra...@amsoft.net> wrote:
> >
> > hi,
> >
> > I am using Log4j in application for logging.
> > I have placed log4j configuration file(log4j.xml) in my
> > application's WEB-INF/classes folder.
> >
> > But the file in which I am taking all logs is filled with tomcat's log
> > along with my application's log.
> >
> > Is there any way I can see only my application's log in my log file ?
> >
>
> Where is the log4j.jar ?.
> Some documents are available.
> http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html
>
> http://jakarta.apache.org/tomcat/faq/logging.html
>
>
> --
> rgds
> Anto Paul
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: stop tomcat's logging in application's log
Posted by Anto Paul <an...@gmail.com>.
On 9/21/05, rahul <ra...@amsoft.net> wrote:
>
> hi,
>
> I am using Log4j in application for logging.
> I have placed log4j configuration file(log4j.xml) in my
> application's WEB-INF/classes folder.
>
> But the file in which I am taking all logs is filled with tomcat's log
> along with my application's log.
>
> Is there any way I can see only my application's log in my log file ?
>
Where is the log4j.jar ?.
Some documents are available.
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html
http://jakarta.apache.org/tomcat/faq/logging.html
--
rgds
Anto Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org