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
|