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 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 1

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, rest

RE: log4j losing log files

2003-10-29 Thread Shapira, Yoav
PM >To: Log4J Users List >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 lis

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 Jacob Kjome
At 01:31 PM 10/29/2003 +0100, you wrote: 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 r

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 curr

Re: log4j losing log files

2003-10-28 Thread Tim Williams
- Original Message - From: "Laurent Blume" <[EMAIL 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 orig

Re: log4j losing log files

2003-10-28 Thread Laurent Blume
Thanks for your help! It's not fixed yet, see below for my actions so far: Shapira, Yoav wrote: Add -Dlog4j.debug=true to your JAVA_OPTS when launching tomcats. Log4j will then output internal debugging information to $CATALINA_HOME/logs/catalina.out. Perhaps that will tell you something useful

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 files.

Re: log4j losing log files

2003-10-28 Thread Tim Williams
know 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

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, de

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 app