Hello Alan,

This problem is fixed in the the o.a.l.rolling package introduced in log4j 1.3.

If you need to fix it for 1.2, then read

http://marc.theaimsgroup.com/?t=109153271700001&r=1&w=2

HTH,

At 11:26 PM 11/17/2004, Alan Brown wrote:

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

-- Ceki G�lc�

The complete log4j manual: http://qos.ch/eclm
Professional log4j support: http://qos.ch/log4jSupport




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to