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]

Reply via email to