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.

Reply via email to