You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Peter Braswell <pb...@utopiansoft.com> on 2003/02/05 04:03:37 UTC

DailyRollingFileAppender on NT

All,
Forgive me if this question has already been addressed.  I searched the
archives and although there seemed to be many references to it, I never was
able to unearth a solution.

I'm running an application on Windows NT and in typical fashion want to
create a new file at 12 midnight.  Looking at the code for
DailyRollingFileAppender I notice that the code wants to rename the file
which doesn't seem to be possible in NT as NT doesn't like you to do this if
any process has this file open.  I get the following message when I run L4J
in debug mode:

LogLog.error("Failed to rename [app.log] to [app.log.xxxx-xx-xxx].");

Any work arounds floating around out there?

-peter


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