Indeed I am and indeed it does.  However, when tailing a file I Am able
to delete it quite happily.  So it's not the classic MS file lock issue.

alan


-----Original Message-----
From: Tom Drake [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 17, 2004 4:13 PM
To: 'Log4J Users List'
Subject: RE: rollover failing...

Are you running on Windoze? This sounds like a problem having to do with
the
way the ms fs works.

-----Original Message-----
From: Alan Brown [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 17, 2004 2:26 PM
To: [EMAIL PROTECTED]
Subject: rollover failing...



We've got log4j set up with a RollingFileAppender with a
TimeBasedRollingPolicy.  Within the development environment, we're fond
of
using 'tail -f' to view the logging in real time.  However, rollover
fails
if the logs are being tailed when it occurs with a
FileNotFoundException.




I was wondering if there is any workaround for this problem.  I
understand
that the inability to create the FileOutputStream is a function of
Java's
implementation of File handling, but I'm hoping there may be some
semi-graceful way that log4j could handle this problem.




Ideally, I'd like the system to be able to create another log file with
a
suffix appended so core.log would become core1.log.  I looked at the
source
code for this and there's no way I can do it  and still be able to
upgrade
to future versions of log4j when they're available.




Does anyone else suffer from this problem?




Any advice would be appreciated. 





alan



=======
Notice: This e-mail message, together with any attachments, contains

information of Symyx Technologies, Inc. that may be confidential,

proprietary, copyrighted, privileged and/or protected work product,

and is meant solely for the intended recipient. If you are not the

intended recipient, and have received this message in error, please

contact the sender immediately, permanently delete the original and

any copies of this email and any attachments thereto.

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

Reply via email to