Re: log4j losing log files SOLVED

2003-11-13 Thread Laurent Blume
Hello all, A bit late, I'm afraid, but since I just got an off-list question about it, and that it was a problem for me, maybe it can help others in the future. Hope it helps you, Tim, if not, don't hesitate to subscribe and post to the list, there are many people that can help you better than

Re: log4j losing log files

2003-10-29 Thread Laurent Blume
More data on my problem. I could reproduce the problem: it happened right after I reload the apps using the Manager app, using the URL: https://myserver/manager/reload?path=/webapp I could do this several times. After a Tomcat start/stop, the logging and rotating works. After a reload, the

Re: log4j losing log files

2003-10-29 Thread Laurent Blume
Jacob Kjome wrote: Are you calling LogManager.shutdown() at application shutdown? If not, try that, otherwise, the file will probably remain locked by the VM. Do this in a servlet context listener contextDestroyed() method. No, I'm not, and it's a good idea. But I'm unsure if it's possible to

Re: log4j losing log files

2003-10-29 Thread Laurent Blume
Shapira, Yoav wrote: Howdy, Neither in the JSPs nor the servlet: take Jacob's advice about the ServletContextListener, it's a good one. Ok, I got it! I didn't know about that, I'm still quite a newbie at JSPs. Created my class implementing ServletContextListener, put it in web.xml of my app,

log4j losing log files

2003-10-28 Thread Laurent Blume
Hello all, I hope this is not too much of a newbie question. I did look through the documentation and on the internet, but I might have not done it the right way. Anyway, here is the problem: I'm using log4j 1.2.8 in several webapps, for each it is inside a class used by several JSPs. The

Re: log4j losing log files

2003-10-28 Thread Laurent Blume
Tim Williams wrote: I just joined the list so I missed the original post. Is this about Log4J not rolling over files properly with the RollingFileAppender? Yep! We ended up writing a modified version because for some reason it held locks and wouldn't 'rollover' properly, so we lost the log