logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Melloni <Bruno.Mell...@chickasaw.net>
Subject RE: How to roll the file based on size and time?
Date Fri, 19 Feb 2010 14:08:46 GMT
Indeed, I once wrote my own and it wasn't too hard. 

Still, it is surprising that an appender for such a common need was never included in the
basic set.

-----Original Message-----
From: Maarten Bosteels [mailto:mbosteels.dns@gmail.com] 
Sent: Friday, February 19, 2010 2:47 AM
To: Log4J Users List
Subject: Re: How to roll the file based on size and time?

Not that I know of.
But it's easy to write your own RollingPolicy. For inspiration, have a look
at org.apache.log4j.rolling.TimeBasedRollingPolicy


On Fri, Feb 19, 2010 at 9:26 AM, Yong-Loh <Vasantha_Rapuru@infosys.com>wrote:

> Hi All,
> We are using log4j framework. Our requirement is, we should roll the file
> based on size and time.
> We have RollingFileAppender and DailyRollingFileAppender for doing these
> separately.
> Is there any appender available in log4j for doing both of these?
> Thanks & Regards,
> Yong-Loh
> --
> View this message in context:
> http://old.nabble.com/How-to-roll-the-file-based-on-size-and-time--tp27650975p27650975.html
> Sent from the Log4j - Users mailing list archive at Nabble.com.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
View raw message