You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Goran <is...@gmail.com> on 2007/05/30 13:21:52 UTC

Log4j runtime reconfigure in Tomcat

 Hello,

I have a question regarding Tomcat 5.5 and log4j (running winXP, Java =
1.5).=20

Deploying my application as .war I have a .jar inside which has a =
log4j.properties in WEB-INF/classes directory.

It works properly like I want it to, but I need a way to change the =
logging level without re-deploying the whole webapp. (note: I don't mind =
restarting Tomcat server)

I noticed in TOMCAT_HOME\conf\Catalina\localhost a myWebApp.xml is =
generated from my web application in WEB-INF/context.xml.

Could I manipulate the logging level through the generated myWebApp.xml, =
which would come in affect after the Tomcat is restarted.

Currently all that my myWebApp.xml contains is the database connection. =
I was wondering if theres a Environment variable or anything of sorts =
that would provide me the access in changing the logging level.

Any help would be appreciated.

Kind Regards,
Goran

Re: Log4j runtime reconfigure in Tomcat

Posted by Goran <is...@gmail.com>.
Please, if you can.
Thank you,

Goran


On 5/30/07, Tim Lucia <ti...@yahoo.com> wrote:
>
> I wrote a webapp which displays and allows for modifying the runtime
> configuration of log4j.  I can send you the .war, if you'd like.
>
> Tim
>
> > -----Original Message-----
> > From: Goran [mailto:islord@gmail.com]
> > Sent: Wednesday, May 30, 2007 7:22 AM
> > To: users@tomcat.apache.org
> > Subject: Log4j runtime reconfigure in Tomcat
> >
> >  Hello,
> >
> > I have a question regarding Tomcat 5.5 and log4j (running winXP, Java =
> > 1.5).=20
> >
> > Deploying my application as .war I have a .jar inside which has a =
> > log4j.properties in WEB-INF/classes directory.
> >
> > It works properly like I want it to, but I need a way to change the =
> > logging level without re-deploying the whole webapp. (note: I don't mind
> =
> > restarting Tomcat server)
> >
> > I noticed in TOMCAT_HOME\conf\Catalina\localhost a myWebApp.xml is =
> > generated from my web application in WEB-INF/context.xml.
> >
> > Could I manipulate the logging level through the generated myWebApp.xml,
> =
> > which would come in affect after the Tomcat is restarted.
> >
> > Currently all that my myWebApp.xml contains is the database connection.
> =
> > I was wondering if theres a Environment variable or anything of sorts =
> > that would provide me the access in changing the logging level.
> >
> > Any help would be appreciated.
> >
> > Kind Regards,
> > Goran
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

RE: Log4j runtime reconfigure in Tomcat

Posted by Tim Lucia <ti...@yahoo.com>.
I wrote a webapp which displays and allows for modifying the runtime
configuration of log4j.  I can send you the .war, if you'd like.

Tim

> -----Original Message-----
> From: Goran [mailto:islord@gmail.com]
> Sent: Wednesday, May 30, 2007 7:22 AM
> To: users@tomcat.apache.org
> Subject: Log4j runtime reconfigure in Tomcat
> 
>  Hello,
> 
> I have a question regarding Tomcat 5.5 and log4j (running winXP, Java =
> 1.5).=20
> 
> Deploying my application as .war I have a .jar inside which has a =
> log4j.properties in WEB-INF/classes directory.
> 
> It works properly like I want it to, but I need a way to change the =
> logging level without re-deploying the whole webapp. (note: I don't mind =
> restarting Tomcat server)
> 
> I noticed in TOMCAT_HOME\conf\Catalina\localhost a myWebApp.xml is =
> generated from my web application in WEB-INF/context.xml.
> 
> Could I manipulate the logging level through the generated myWebApp.xml, =
> which would come in affect after the Tomcat is restarted.
> 
> Currently all that my myWebApp.xml contains is the database connection. =
> I was wondering if theres a Environment variable or anything of sorts =
> that would provide me the access in changing the logging level.
> 
> Any help would be appreciated.
> 
> Kind Regards,
> Goran



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