You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Simon Park <si...@yahoo.co.uk> on 2011/05/25 20:21:41 UTC

Re: TimeAndSizeRollingAppender

Hi,

Apologies for the late follow-up on this.  I figured it would be helpful to 
provide a feature comparison table so that Log4J users can more easily select 
the rolling Appender that best fits their use case.  The table at 
http://www.simonsite.org.uk/comparison.htm is an attempt to provide an objective 
comparison of the most obvious features of the following Appenders:

 - TimeAndSizeRollingAppender
 - Log4J DailyRollingFileAppender
 - Log4J RollingFileAppender
 - Log4J Extras RollingFileAppender

If anyone spots any errors or omissions, please let me know and I'll be happy to 
make corrections.

Best Regards,

Simon




________________________________
From: Simon Park <si...@yahoo.co.uk>
To: Log4J Users List <lo...@logging.apache.org>
Sent: Tue, 19 April, 2011 21:07:19
Subject: Re: TimeAndSizeRollingAppender


Hi Joe,

The Appender is not available in a public Maven repository.  I usually recommend 
that users just publish it into their local repository.  There's a POM file on 
my site.

I guess if you take one of the TASRA's sample configurations, and then try to do 
the same stuff with Log4J Extras, you'll see what you can and can't do with 
each.  But it really depends upon the features you want to use.  At its most 
basic, you can certainly do the same stuff with the TASRA as you can with Log4J 
Extras.  For some of the more interesting functionality, I think the TASRA is a 
little ahead.

Best Regards,

Simon




________________________________
From: Joe.Littlejohn <jo...@gmail.com>
To: log4j-user@logging.apache.org
Sent: Tue, 19 April, 2011 18:24:45
Subject: Re: TimeAndSizeRollingAppender


Simon,

Your appender looks to be exactly what we need. Is this available in a Maven
repo anywhere??

Also, I saw a mention in one of your mails to this group that you made this
appender 'before stumbling on log4j extras'. Does this mean that log4j
extras has an equivalent appender?

Cheers,
Joe




Simon Park wrote:
> 
> Hi,
> 
> I contributed a TimeAndSizeRollingAppender last year that some people have
> been using.  I have fixed a couple of bugs that  users pointed out and made
> the new code available at http://www.simonsite.org.uk/.
> 
> The appender rolls by time, as well as by size, also cleaning up older log
> files using a separate thread.  It's compatible with Log4J 1.2.9 - 1.2.15.
> 
> Hopefully this is useful.
> 
> Simon
> 

-- 
View this message in context: 
http://old.nabble.com/TimeAndSizeRollingAppender-tp21093197p31434636.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