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 Shapira, Yoav
Subject: Re: log4j losing log files 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

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,

Re: log4j losing log files

2003-10-29 Thread Tim Williams
Now I'm wondering if this is the problem we had and the dirty fix we used was exactly that - dirty! Tim. - Original Message - From: Laurent Blume [EMAIL PROTECTED] To: Log4J Users List [EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 10:11 AM Subject: Re: log4j losing log files

RE: log4j losing log files

2003-10-28 Thread Shapira, Yoav
Howdy, I don't have a solution to your problem, just a couple of points/questions. ;) The log4j1.2.8.jar file is in each webapp/WEB-INF/lib. Each webapp has its own config file in webapp/WEB-INF/classes. Good. Each config file contains: log4j.rootLogger=DEBUG log4j.logger.dev=DEBUG, dev

Re: log4j losing log files

2003-10-28 Thread Tim Williams
if this is what you are experiencing and I'll dig out the code. Also, what operating system are you running on? Regards, Tim. - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Log4J Users List [EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 5:55 AM Subject: RE: log4j losing log files

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

Re: log4j losing log files

2003-10-28 Thread Tim Williams
PROTECTED] To: Log4J Users List [EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 6:27 AM Subject: Re: log4j losing log files 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