logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject Re: DailyRollingFileAppender not renaming files
Date Wed, 28 Aug 2002 15:07:48 GMT
At 09:04 28.08.2002 -0600, you wrote:
>Hi,
>
>I'm using log4j on the Windows platform and many times I notice that
>DailyRollingFileAppender is not able to rename the log file. I get this
>messages on stderr:
>
>log4j:ERROR Failed to rename [c:/path/to/my/file] to
>[c:/path/to/my/file.2002-08-27].
>
>I searched the archives and someone had said it may have something to do
>with multiple threads using a single Logger object. This may in fact be what
>is causing my problem since I have two threads in one class that are using
>the same Logger.

Don't believe everything you read.

>What should I do to prevent this error from occurring? It is important we
>keep backups of all our log files!

Which version of log4j is this? What is the DatePattern for 
DailyRollingFileAppender? Is the directory c:/path/to/my protected?

>Thanks,
>-shawn

--
Ceki


--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message