Re: Using log4j1.2.17 foter is not getting added to each log file in rollingfileappender

2016-01-05 Thread Simon Park
FWIW, if you're stuck on Log4J 1.2.17, you could use the TimeAndSizeRollingAppender available from www.simonsite.org.uk to solve this use case. Best Regards, Simon Sent from my iPad > On 5 Jan 2016, at 06:14, Anshu Garg1 wrote: > > Hi, > > We have extended patternlayout to set custom foote

Re: Time and Size based rolling (using log4j companions extras)

2011-07-06 Thread Simon Park
Hi Olivier, Assuming that you're sticking with Log4J, you could perhaps try out the TimeAndSizeRollingAppender available at www.simonsite.org.uk. This Appender is in production use in at least one large investment bank where it is deployed in several configurations, including threaded applicat

Re: TimeAndSizeRollingAppender

2011-05-25 Thread Simon Park
make corrections. Best Regards, Simon From: Simon Park To: Log4J Users List 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

Re: TimeAndSizeRollingAppender

2011-04-19 Thread Simon Park
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 TimeAndSizeRolli

Re: RollingFileAppender + TimeBasedRollingPolicy

2010-10-14 Thread Simon Park
The TimeAndSizeRollingAppenderat www.simonsite.org.uk might do the trick by configuration. You can configure a time-based rolling schedule via a date pattern. There's also a scavenger built-in that will delete older backup log files beyond a particular count. So if you configure the appender

Re: Is DailyRollingFileAppender stable?

2010-09-06 Thread Simon Park
No such issues have (so far) been observed with the TimeAndSizeRollingAppender, which directly subclasses the Log4J FileAppender. This Appender does the same stuff as the DailyRollingFileAppender, plus a few extra features. You could perhaps give that a try. Available under the Apache 2.0 lic

Re: Tomcat Daily Log Rotation fails at app. level.

2010-05-19 Thread Simon Park
Hi Ryan, Not sure whether this helps you or not, but the TimeAndSizeRollingAppender has a RollOnStartup switch. This ensures that logs are rolled when the appender receives the first event logged by the application following start-up. Thereafter logs are rolled normally according to the time

Re: Question about using org.apache.log4j.rolling.RollingFileAppender

2010-04-02 Thread Simon Park
The TimeAndSizeRollingApender doesn't bother renaming the list of backup files and so doesn't have this restriction. It's freely available under the same Apache 2.0 license as Log4J at www.simonsite.org.uk. From: Doal Miller To: Log4J Users List Sent: Tue,

Re: How to roll the file based on size and time?

2010-02-20 Thread Simon Park
You could try the TimeAndSizeRollingAppender available at www.simonsite.org.uk. From: Maarten Bosteels To: Log4J Users List 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 wri

Re: Adding a Header to Log4j with DailyRollingAppender

2010-02-11 Thread Simon Park
The TimeAndSizeRollingAppender behaves very similarly to the DailyRollingAppender and makes it easy to do just what you need by configuring the FileRollEventMessage property. The caveat is that its not part of the main Log4J code. See my site at http://www.simonsite.org.uk for Javadocs and do

Re: How to implement DailyRollingFile appender with rollingPolicy

2009-05-17 Thread Simon Park
Hi, Could you send your configuration file to me please? After a quick test I am unable to reproduce the problem. In the meantime, try creating the directory you expect the appender to append to, assuming it doesn't already exist. Also check whether the user that the logger is running under has

Re: Access logfile logger

2009-05-04 Thread Simon Park
Hi Jason, What are your requirements for "reporting functions"? Do you need to discover statistics about the current log file? I'm guessing, but it seems that the most useful statistic might be the current size of the log file. I've outlined a possible way you might be able to get at that.

Re: Custom Appender works fine with rootlogger, but not when logger specified

2009-03-19 Thread Simon Park
Hi, Take a look at the http://www.simonsite.org.uk/javadoc/org/apache/log4j/appender/TimeAndSizeRollingAppender.html. Source is available in the JAR at http://www.simonsite.org.uk/resources/lib/log4j-rolling-appender.jar. This appender does a similar thing to your custom appender by the soun

Re: timestamp in rolled over files

2009-03-03 Thread Simon Park
You could maybe use the org.apache.log4j.DailyRollingFileAppender to roll by time only. You use a pattern compatible with java.text.SimpleDateFormat to configure the appender's DatePattern property with the period you want files to roll, e.g. by any one of minute, hour, half-day, day, week, etc

Re: TimeAndSizeRollingAppender contribution

2009-02-05 Thread Simon Park
From: Simon Park To: log4j-user@logging.apache.org Sent: Thursday, 5 February, 2009 15:44:34 Subject: TimeAndSizeRollingAppender contribution Hi, I've updated the TimeAndSizeRollingAppender that I originally contributed to the Log4J project back in September 2007. Whilst this isn

TimeAndSizeRollingAppender contribution

2009-02-05 Thread Simon Park
Hi, I've updated the TimeAndSizeRollingAppender that I originally contributed to the Log4J project back in September 2007. Whilst this isn't an integration with the (much cooler and more flexible) Log4J Extras, it does seem to be useful and as far as I know is being used in a handful of produc

TimeAndSizeRollingAppender

2008-12-19 Thread Simon Park
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 usi

Re: AsyncAppender "blocking" property

2008-06-26 Thread Simon Park
Hi Adam, If you're at all interested, I've put together a non-blocking alternative to the Loj4J AsyncAppender. This code has been contributed to the Log4J project, though it hasn't been picked up since it has external dependencies. Details at http://www.simonsite.org.uk/. Simon - Origi

Time-and-size rolling appender

2007-09-22 Thread Simon Park
Hi, Before I stumbled upon Log4J Extras I had written a composite time-and-size-based appender against the 1.2.14 code. The code is freely available at http://www.simonsite.org.uk (it's on the home page). I've tried to follow the Log4J conventions. The question is: is this actually useful?