logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Park <simon_park_m...@yahoo.co.uk>
Subject Re: How to roll the file based on size and time?
Date Sat, 20 Feb 2010 09:54:32 GMT
You could try the TimeAndSizeRollingAppender available at www.simonsite.org.uk.




________________________________
From: Maarten Bosteels <mbosteels.dns@gmail.com>
To: Log4J Users List <log4j-user@logging.apache.org>
Sent: Fri, 19 February, 2010 8:47:23
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 <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
>
>



      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message