[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4j-user
Subject:    RE: Re[2]: stopping logging after removing context in Tomcat prob
From:       Swami Iyer <SIyer () descartes ! com>
Date:       2002-06-25 19:45:55
[Download RAW message or body]

I think there is a LogManager.shutdown(). 

Swami

> -----Original Message-----
> From: Jacob Kjome [mailto:hoju@visi.com]
> Sent: June 25, 2002 3:40 PM
> To: Log4J Users List
> Subject: Re[2]: stopping logging after removing context in Tomcat
> problem...
> 
> 
> Hello Swami,
> 
> That sounds good.  Can you expand on how I would do a
> "log4j.shutdown"?  I'm not sure where to look.  I've never seen
> mention of this in the FAQ or the docs and don't know where to look in
> the API for this.  If you can point me in the right direction, that
> would be excellent!
> 
> thanks,
> 
> Jake
> 
> Tuesday, June 25, 2002, 1:53:41 PM, you wrote:
> 
> SI> Try catching the deploy in the destroy of the servlet and do the
> SI> log4j.shutdown. This would release the resource held by 
> this jar file and
> SI> you would be able to perform your operation.
> 
> SI> Swami
> 
> >> -----Original Message-----
> >> From: Jacob Kjome [mailto:hoju@visi.com]
> >> Sent: June 25, 2002 2:47 PM
> >> To: Log4J Users List
> >> Subject: stopping logging after removing context in Tomcat 
> problem...
> >> 
> >> 
> >> Hi,
> >> 
> >> I'm not sure if this is an issue I should be bringing up here or on
> >> the Tomcat-user list, but here goes...
> >> 
> >> I am using Tomcat-4.1.3 and taking advantage of the new Ant tasks
> >> which hook up to Tomcat's manager app to dynamically install and
> >> remove applications.  This works great and log4j initializes just
> >> fine.  I am using the FileAppender with 
> configureAndWatch().  Logging
> >> works just fine.
> >> 
> >> However, when I remove the app, Tomcat seems to unload all 
> resources
> >> except for log4j-1.2.4.jar because when I attempt an "ant clean",
> >> which deletes my "build" directory, it fails saying that 
> the resource
> >> log4j-1.2.4.jar is still in use.
> >> 
> >> So, is this an issue that someone here can explain or should I take
> >> this up with the Tomcat-user list?
> >> 
> >> Thanks,
> >> 
> >> Jake
> >> 
> >>   
> >> 
> >> -- 
> >> Best regards,
> >>  Jacob                          mailto:hoju@visi.com
> >> 
> >> 
> >> --
> >> To unsubscribe, e-mail:   
> SI> <mailto:log4j-user-unsubscribe@jakarta.apache.org>
> SI> For additional commands, e-mail: 
<mailto:log4j-user-help@jakarta.apache.org>

SI> --
SI> To unsubscribe, e-mail:
<mailto:log4j-user-unsubscribe@jakarta.apache.org>
SI> For additional commands, e-mail:
<mailto:log4j-user-help@jakarta.apache.org>



-- 
Best regards,
 Jacob                            mailto:hoju@visi.com


--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic