I am aware of the problem. Do send a reminder if it is not solved in log4j 1.3.
At 09:04 AM 1/13/2004 -0700, Typrowicz, Jim wrote:
Tim,
I found your thread a couple of weeks ago and this is the one we implemented as well. I disagree that it is not a log4j problem. As you pointed out in the code it doesn't check to see if the rename failed. In my opinion log4j should handle all platforms, even Windows. I was hoping the log4j developers would put a fix in the next release, otherwise, a lot of folks will have to do the same hack again.
Thank you, Jim
-----Original Message----- From: Tim Williams [mailto:[EMAIL PROTECTED] Sent: Monday, January 12, 2004 11:52 PM To: Log4J Users List Subject: Re: Daily Rolling Appender Failing
We had this problem on AIX, although we never tracked down the specific cause the behaviour is identical. I don't think it is necessarily a Log4J problem either - more to do with the file system itself. We ended up writing a nasty hack version of the rolling file appender. There was a discussion about this on the list a couple of months ago - is there a searchable archive anywhere?
Tim.
----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 12, 2004 3:13 PM Subject: RE: Daily Rolling Appender Failing
> I don't think this is a problem with log4j, more of an issue with the way > Windows handles renaming open files (or perhaps the way Java does it). > > I just avoid the problem by not keeping log files open overnight, or just > copying to another location before opening them. Kind of like the joke > where the guy goes to the doctor and says "it hurts when I do this", and the > doctor goes, "then don't do that." :) > > Seriously though, if you are in a production environment on Windows, you can > find yourself missing some log messages if you run into this so it is > certainly something to be careful to avoid. > > Ken > > > -----Original Message----- > > From: Typrowicz, Jim [mailto:[EMAIL PROTECTED] > > Sent: Monday, January 12, 2004 4:56 PM > > To: 'Log4J Users List' > > Subject: RE: Daily Rolling Appender Failing > > > > > > Ken, > > > > Thank you for your reply. Do you know if the log4j > > developers are working > > on a solution? > > > > Thank you, > > Jim > > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: Monday, January 12, 2004 2:18 PM > > To: [EMAIL PROTECTED] > > Subject: RE: Daily Rolling Appender Failing > > > > I have found that files can fail to roll over on Windows if > > you still have > > them open (such as with tail or Wordpad) when log4j tries to > > roll over . > > This might be your problem. > > > > Ken > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Ceki G�lc�
For log4j documentation consider "The complete log4j manual"
ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
