We had the same requirement.
The only approach that I could discover was to create our own version of
FileWatchdog where #lastModif was set in the constructor (see below).
// WilliamF this is the change we made from log4j-1.2.12 as we don't
// want any prior log to be wiped when the Watchdog first starts up.
this.lastModif = this.file.lastModified();
William
-----Original Message-----
From: RParr [mailto:[EMAIL PROTECTED]
Sent: Friday, 10 March 2006 7:27 AM
To: Log4J Users List
Subject: Re: Rollover at restart
Rakesh Arora wrote:
> Hi,
>
> I am using RollingFileAppender. Is it possible to rollover to a new
> file at the time of server/application restart, irrespective of the
> size of the current log file?
>
Did you find an method that worked?
R.Parr, Temporal Arts
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]