logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Burton Strauss" <Bur...@SmallNetSolutions.com>
Subject RE: Rollover at restart
Date Tue, 21 Feb 2006 13:34:16 GMT
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:KAhmed@webMethods.com] 
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:rakesh.arora@nortel.com]
Sent: Tuesday, January 31, 2006 2:30 PM
To: log4j-user@logging.apache.org
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: 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


---------------------------------------------------------------------
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