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:[email protected]] 
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

Maarten

On Fri, Feb 19, 2010 at 9:26 AM, Yong-Loh <[email protected]>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: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to