ok - what I would suggest is to clear the file is that you:
1.) Disable the file appender
2.) Delete/move the file
3.) Renable the file appender

You may of course potentially loose some logging info using this method if
your application is multi-threaded.

sam
----- Original Message -----
From: "David Muelas Sánchez" <[EMAIL PROTECTED]>
To: "LOG4J Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, July 19, 2001 10:55 AM
Subject: RE: Problems to clear the log file at runtime


>
>
> In a few words, what I want to do is to clear the file during the
> execution. I can´t use another file for the appender because it has to be
> the same file but cleared.
>
>



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

Reply via email to