logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fredrik Jonson" <fred...@myrealbox.com>
Subject Re: Stale file handles when using log4j and tomcat? [Solved]
Date Thu, 10 Feb 2005 09:08:27 GMT
On 2005-02-08 at 21:56, andy.mcbride@dsl.pipex.com wrote:
> Fredrik wrote:
> > Is there any trick to make log4j close logfiles when the webbapp
> > is stopped?
>
> Have you tried using a ServletContextListener which calls
> org.apache.log4j.LogManager.shutdown() in its contextDestroyed method?

Now I have. And it works perfectly. Thanks for the advice!

Regards,
--
Fredrik Jonson



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


Mime
View raw message