logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Ferguson" <William.Fergu...@contractorsolutions.com.au>
Subject RE: Rollover at restart
Date Thu, 09 Mar 2006 23:59:09 GMT
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:RParr@TemporalArts.COM] 
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: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


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


Mime
View raw message