I haven't tried this, but what about
setMaxFileSize(small_number)
info("Log Rollover")
setMaxFileSize(normal_number)
info("New Log header")
-----Burton
-----Original Message-----
From: Kamal Ahmed [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 21, 2006 1:24 AM
To: Log4J Users List
Subject: RE: Rollover at restart
Rakesh,
You could use:
http://logging.apache.org/log4j/docs/api-1.3/org/apache/log4j/varia/External
lyRolledFileAppender.html
-Kamal.
-----Original Message-----
From: Rakesh Arora [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 31, 2006 2:30 PM
To: [email protected]
Subject: Rollover at restart
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?
Thanks,
-Rakesh
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]