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]
