Re: DailyRollingFileAppender with Max size

2014-06-04 Thread simon_park_m...@yahoo.co.uk
You could consider using the TimeAndSizeRolljngAppender, available from www.simonsite.org.uk, which is Log4J 1.2.x compatible.  That might suit your immediate needs until such time as you are ready to upgrade to Log4J 2.0. Best Regards, Simon Sent from Yahoo Mail on Android

Re: DailyRollingFileAppender with Max size

2014-06-04 Thread James Hutton
lh...@gmail.com> Date:06/03/2014 13:19 (GMT-05:00) > > To: Log4J Users List > > Subject: Re: DailyRollingFileAppender with Max size > > > This is my current appender - > > > > > class="org.apache.log4j.DailyRollingFileAppender"> > > &g

Re: DailyRollingFileAppender with Max size

2014-06-03 Thread Akash Jain
Log4J Users List > Subject: Re: DailyRollingFileAppender with Max size > This is my current appender - > > class="org.apache.log4j.DailyRollingFileAppender"> > > > > > > > > >

Re: DailyRollingFileAppender with Max size

2014-06-03 Thread Gary Gregory
James is talking about log4j 2 I think.  Gary Original message From: Akash Jain Date:06/03/2014 13:19 (GMT-05:00) To: Log4J Users List Subject: Re: DailyRollingFileAppender with Max size This is my current appender

Re: DailyRollingFileAppender with Max size

2014-06-03 Thread Akash Jain
This is my current appender - On Tue, Jun 3, 2014 at 5:17 AM, James Hutton wrote: > Akash, > You can, but I think without modifying the conversion pattern (adding %i) > it isn't possible. You can use multiple rollover p

Re: DailyRollingFileAppender with Max size

2014-06-03 Thread James Hutton
Akash, You can, but I think without modifying the conversion pattern (adding %i) it isn't possible. You can use multiple rollover policies, you would end up using the SizeBaseRolloverPolicy(?). I'm assuming if you have the time based rollover policy that you're using the date string. James On

Re: DailyRollingFileAppender with Max size

2014-06-03 Thread Steffen Ryll
Looks as if you forgot pasting the conversion pattern. Can you clarify? /Steffen Am 03.06.2014 08:54, schrieb Akash Jain: > Hi, > > I am using org.apache.log4j.DailyRollingFileAppender for my logs with > following conversion pattern : > > But I also want to use max File Size with this, so that

DailyRollingFileAppender with Max size

2014-06-02 Thread Akash Jain
Hi, I am using org.apache.log4j.DailyRollingFileAppender for my logs with following conversion pattern : But I also want to use max File Size with this, so that the file is rolled if it reaches a max size even if same day. How can I achieve this ? Thanks.

Re: DailyRollingFileAppender

2013-12-09 Thread Gary Gregory
Alec, We are not focusing on version 1 any longer. You should consider using version 2 instead. Gary On Mon, Dec 9, 2013 at 12:46 PM, Tomcat Random wrote: > Log4j version 1.2.17 > > From the docs: > > "DailyRollingFileAppender has been observed to exhibit synchronizati

DailyRollingFileAppender

2013-12-09 Thread Tomcat Random
Log4j version 1.2.17 >From the docs: "DailyRollingFileAppender has been observed to exhibit synchronization issues and data loss. How bad exactly? Loss of an occasional error message, or loss of entire portions of logs? Synchronization issues affecting performance? I'm just wonde

Re: Log4J DailyrollingFileAppender Issue

2012-01-09 Thread Jacob Kjome
inside my application .jar file. The two programs will write logs into the file for 5 minutes and I am using DailyRollingFileAppender to rolled the log files every minutes. The problem is the log file is not rolled over and encounter error message "failed to rename the file...". Why is

Log4J DailyrollingFileAppender Issue

2012-01-09 Thread indomie15
Hi All, I have two programs that will run concurrently to write logs into the same log file. I am using log4j-1.2.16.jar and place log4j.xml inside my application .jar file. The two programs will write logs into the file for 5 minutes and I am using DailyRollingFileAppender to rolled the log

What is happening on DailyRollingFileAppender when disk is full

2011-08-25 Thread Osamu Ochiai
Hello, When the disk is full, I guess, the DailyRollingFileAppender can catch an IOException. Then, the control comes back the call program without log4j logging. Is it correct? Thanks in advance. Osamu Ochiai

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

Re: Is DailyRollingFileAppender stable?

2010-09-05 Thread saurabh.agra...@criticalpath.net
Hi, Yes, you are right. There are few problems reported in API DOC of log4j (the lines you pasted.). We had faced the same issue, and we were not sure if DailyRollingFileAppender will cause any data loss? Instead of that, we had used "org.apache.log4j.rolling.RollingFileAppender"

Is DailyRollingFileAppender stable?

2010-09-05 Thread Chris
The javadoc for DailyRollingFileAppender says: "DailyRollingFileAppender has been observed to exhibit synchronization issues and data loss. The log4j extras companion includes alternatives which should be considered for new deployments and which are discussed in the documentatio

Unable to rename file for DailyRollingFileAppender

2010-05-10 Thread Sanjay_Patil
Hi Guys, Please can you assist me on below issue. I am using Log4j 1.2.14 in my Spring application for configuring DailyRollingFileAppender. I am running on Windows XP & WAS 6.1 env. This is how I am configuring it : 1. I use DOM.configurer to read my Log4j file. 2. Before I do tha

Re: dailyrollingfileappender file location

2010-03-27 Thread AcidDragon
pender to a > specific appender class, call the setFile() and activateOptions method. > Would be a lot messier. > > > On Mar 19, 2010, at 9:05 AM, AcidDragon wrote: > > > I use an xml file to configure my logger, how can I change the > > dailyrollingfileappender file p

Re: dailyrollingfileappender file location

2010-03-19 Thread Curt Arnold
ile to configure my logger, how can I change the > dailyrollingfileappender file path from my java program? > > The reason I want to change it is that the program may be installed in > various paths for different deployments, so I do not want to hardcode the > location of the log file

dailyrollingfileappender file location

2010-03-19 Thread AcidDragon
I use an xml file to configure my logger, how can I change the dailyrollingfileappender file path from my java program? The reason I want to change it is that the program may be installed in various paths for different deployments, so I do not want to hardcode the location of the log file in my

Re: DailyRollingFileAppender (newest on top)

2009-12-12 Thread mc1392
- > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > -- View this message in context: http://old.nabble.com/DailyRollingFileAppender-tp26701419p2675893

Re: DailyRollingFileAppender (newest on top)

2009-12-12 Thread Curt Arnold
On Dec 8, 2009, at 3:48 PM, mc1392 wrote: > > Is there any way to get the log entries to have the most recent on top? > Currently I am using html layout and the newest entry ends up at the bottom > of the file. > I'd like the newest on top. > Appending content is within the capabilities of jav

RE: DailyRollingFileAppender

2009-12-09 Thread Michael Erskine
> Is there any way to get the log entries to have the most recent on top? > Currently I am using html layout and the newest entry ends up at the bottom > of the file. > I'd like the newest on top. Turn your screen upside down :) Seriously though - I don't mean to poke fun but there's a proliferat

DailyRollingFileAppender

2009-12-08 Thread mc1392
Is there any way to get the log entries to have the most recent on top? Currently I am using html layout and the newest entry ends up at the bottom of the file. I'd like the newest on top. -- View this message in context: http://old.nabble.com/DailyRollingFileAppender-tp26701419p26701419

Re: DailyRollingFileAppender - Every X minutes?

2009-12-06 Thread Curt Arnold
gt; I am using the DailyRollingFileAppender in my program and I wish to roll > files every 15 minutes but failed to find a way to do so. > Is there a way to configure the DatePattern to trigger file rolling every X > minutes? Or is it truly only capable of rolling every single unit time (1

DailyRollingFileAppender - Every X minutes?

2009-12-06 Thread Ohad Ben Porat
Hey, I am using the DailyRollingFileAppender in my program and I wish to roll files every 15 minutes but failed to find a way to do so. Is there a way to configure the DatePattern to trigger file rolling every X minutes? Or is it truly only capable of rolling every single unit time (1 minutes

Re: Concatenate DailyRollingFileAppender and SMTPAppender

2009-12-04 Thread Curt Arnold
The RollingFileAppender framework in the extras companion (http://logging.apache.org/log4j/companions/extras/index.html) would be a better starting point. Much more designed for extensibility than DailyRollingFileAppender but offers the same features when properly configured. You should be

Fwd: Concatenate DailyRollingFileAppender and SMTPAppender

2009-12-04 Thread JOSE L MARTINEZ-AVIAL
Hello, Does anyone know if it's possible to "concatenate" two appenders? I have setup a DRFA that rollovers at midnight, and I'd like it to send the file it generates by mail to a certain mail address. I know I can modify the DRFA to do that, but I wonder if such behaviour is already contemplat

Re: DailyRollingFileAppender roll time

2009-11-16 Thread Maarten Bosteels
lover time and then rollover. " This means it can take 2 seconds or 2 years before it actually rolls (when no log events are being generated for 2 years). M. On Tue, Nov 10, 2009 at 11:16 PM, kolhead wrote: > > Hi, > > At exactly what time does the DailyRollingFileAppender roll t

DailyRollingFileAppender roll time

2009-11-10 Thread kolhead
Hi, At exactly what time does the DailyRollingFileAppender roll the logs . Is it 23:59 or 00:00. Thanks -- View this message in context: http://old.nabble.com/DailyRollingFileAppender-roll-time-tp26292283p26292283.html Sent from the Log4j - Users mailing list archive at Nabble.com

RE: Is DailyRollingFileAppender efficient or safe to use if log file is huge?

2009-11-03 Thread Michael Erskine
I suggest you create a custom rolling file appender to do exactly what you need. Regards, Michael Erskine. - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logg

AW: Is DailyRollingFileAppender efficient or safe to use if log file is huge?

2009-11-02 Thread Bender Heri
logfiles up to 200 MB didnt throw any problems (on windows XP and winserver2003 with NTFS). Heri -Ursprüngliche Nachricht- Von: shaoxianyang [mailto:ysxsu...@hotmail.com] Gesendet: Montag, 2. November 2009 21:47 An: log4j-user@logging.apache.org Betreff: Is DailyRollingFileAppender

Is DailyRollingFileAppender efficient or safe to use if log file is huge?

2009-11-02 Thread shaoxian yang
Hi, I am using log4j 1.2.15. I am pondering between DailyRollingFileAppender and RollingFileAppender. For RollingFileAppender, I can enforce file size limit and MaxBackupIndex. But for DailyRollingFileAppender, i can not limit either. Aside from being difficult to planing disk space

Is DailyRollingFileAppender efficient or safe to use if log file is huge?

2009-11-02 Thread shaoxianyang
Hi, I am using log4j 1.2.15. I am pondering between DailyRollingFileAppender and RollingFileAppender. For RollingFileAppender, I can enforce file size limit and MaxBackupIndex. But for DailyRollingFileAppender, i can not limit either. Aside from being difficult to plan disk space usage

Is DailyRollingFileAppender efficient or safe to use if log file is huge?

2009-11-02 Thread shaoxianyang
Hi, I am using log4j 1.2.15. I am pondering between DailyRollingFileAppender and RollingFileAppender. For RollingFileAppender, I can enforce file size limit and MaxBackupIndex. But for DailyRollingFileAppender, i can not limit either. Aside from being difficult to planing disk space

Is DailyRollingFileAppender efficient or safe to use if log file is huge?

2009-11-02 Thread shaoxianyang
Hi, I am using log4j 1.2.15. I am pondering between DailyRollingFileAppender and RollingFileAppender. For RollingFileAppender, I can enforce file size limit and MaxBackupIndex. But for DailyRollingFileAppender, i can not limit either. Aside from being difficult to planing disk space

Re: DailyRollingFileAppender - creation of directories? (patch)

2009-09-01 Thread Simon Gibbs
The code here nearly supports this feature: http://svn.apache.org/repos/asf/logging/log4j/companions/extras/tags/v1_0_rc5 The relevant appender is org.apache.log4j.rolling.RollingFileAppender though it seems to fail on the change of the month. Perhaps the team would be interested in attached p

Re: DailyRollingFileAppender - creation of directories?

2009-08-05 Thread Frank Taylor
I implemented this http://dl.getdropbox.com/u/688127/public-web-site/DailyRollingFileAppenderToDirectories.htm DailyRollingFileAppender with Directory support because there was so much public outcry for it. ipsi wrote: > > I'm fairly sure this isn't possible, but I figure

Re: DailyRollingFileAppender - creation of directories?

2009-07-14 Thread Yair Ogen
please look at the extension supplied here: http://www.simonsite.org.uk It supports rolling by size and or by date as well as supports archiving. On Wed, Jul 15, 2009 at 8:11 AM, Andrew Thorburn wrote: > I'm fairly sure this isn't possible, but I figured I should check, just in > case. > > Curr

DailyRollingFileAppender - creation of directories?

2009-07-14 Thread Andrew Thorburn
I'm fairly sure this isn't possible, but I figured I should check, just in case. Currently, I have the DRFA set up to roll the log files over at midnight each day. Nice and simple. However, they all currently wind up in the same directory, which is not ideal. What I would prefer is for each month

Re: AW: DailyRollingFileAppender & RollingFileAppender after a rollover continues to write on previous file...

2009-07-13 Thread Roberto Simoni
Von: Roberto Simoni [mailto:roberto.sim...@yahoo.it] Gesendet: Freitag, 10. Juli 2009 11:38 An: log4j-user@logging.apache.org Betreff: [SPAM (Bayesain Analysis)] - DailyRollingFileAppender & RollingFileAppender after a rollover continues to write on previous file... - Bayesian Filter detected spam Hi to al

AW: DailyRollingFileAppender & RollingFileAppender after a rollover continues to write on previous file...

2009-07-13 Thread Bender Heri
imoni [mailto:roberto.sim...@yahoo.it] Gesendet: Freitag, 10. Juli 2009 11:38 An: log4j-user@logging.apache.org Betreff: [SPAM (Bayesain Analysis)] - DailyRollingFileAppender & RollingFileAppender after a rollover continues to write on previous file... - Bayesian Filter detected spam Hi to al

DailyRollingFileAppender & RollingFileAppender after a rollover continues to write on previous file...

2009-07-10 Thread Roberto Simoni
file. We have only a log4j.xml file and a file appender configured. What I see is that when the problem occurs a lot of logs is in writing in that moment. We have a batch operation at midnight, so with DailyRollingFileAppender the problem occurs everyday, instead with RollingFileAppender the pr

Re: DailyRollingFileAppender, but no new file the next day - why?

2009-05-12 Thread Curt Arnold
On May 12, 2009, at 12:31 AM, Linnemann, Gerrit wrote: Hallo, I'm using the DailyRollingFileAppender. The Tomcat runs 24/7. But I've to restart Tomcat to get a new log file. It seams that log4j only log until midnight. So I lost information. Here is my configuration

DailyRollingFileAppender, but no new file the next day - why?

2009-05-11 Thread Linnemann, Gerrit
Hallo, I'm using the DailyRollingFileAppender. The Tomcat runs 24/7. But I've to restart Tomcat to get a new log file. It seams that log4j only log until midnight. So I lost information. Here is my configuration: After restarting the serve

Need some help with with DailyRollingFileAppender

2009-05-07 Thread lasith haputhanthiri
Hi all, I'm using the DailyRollingFileAppender to get daily log files and* it works fine*. The log file are generated in format *test.log.2009-05-07*. But I want to get them as *test.2009-05-07.log*. So I can open them easily. Does any one know the answer? Thanks in advance. Regards, Lasith.

Re: AW: [SPAM (Bayesain Analysis)] - 'DailyRollingFileAppender' problem - two process, one log4j.properties file - Bayesian Filter detected spam

2009-03-16 Thread yokese
tion files there's no problem. It seems to be a log4j bug or a missunderstanding by my side of log4j principles.But, well all works fine except the DailyRollingFileAppender or log files. Bender Heri wrote: > > Two JVM logging to the same file is a "MUST NOT". > Heri

AW: [SPAM (Bayesain Analysis)] - 'DailyRollingFileAppender' problem - two process, one log4j.properties file - Bayesian Filter detected spam

2009-03-16 Thread Bender Heri
Two JVM logging to the same file is a "MUST NOT". Heri -Ursprüngliche Nachricht- Von: yokese [mailto:fastturtle...@gmail.com] Gesendet: Montag, 16. März 2009 13:35 An: log4j-user@logging.apache.org Betreff: [SPAM (Bayesain Analysis)] - 'DailyRollingFileAppender' pr

'DailyRollingFileAppender' problem - two process, one log4j.properties file

2009-03-16 Thread yokese
file: -- log4j.rootCategory=DEBUG log4j.logger.FileChecker=DEBUG,FileChecker log4j.logger.AlertChecker=DEBUG,AlertChecker # # FileChecker is a DailyRollingFileAppender # log4j.appender.FileChecker=org.apache.log4j.DailyRollingFileAppender log4j.appender.FileChecker.file=

Re: Problem with DailyRollingFileAppender

2009-02-23 Thread prashant_4s
context: http://www.nabble.com/Problem-with-DailyRollingFileAppender-tp22157763p22158184.html Sent from the Log4j - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org

Re: Problem with DailyRollingFileAppender

2009-02-23 Thread Raghuveer.V
=org.apache.log4j.PatternLayout log4j.appender.struts.layout.ConversionPattern=%d~%p~%c~ %m%n ## Log file path log4j.appender.struts.File=D:\\struts.log - Original Message - From: "prashant_4s" To: Sent: Monday, February 23, 2009 2:40 PM Subject: Problem with DailyRollingFileAppe

Problem with DailyRollingFileAppender

2009-02-23 Thread prashant_4s
this message in context: http://www.nabble.com/Problem-with-DailyRollingFileAppender-tp22157763p22157763.html Sent from the Log4j - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: log4j-user-unsu

DailyRollingFileAppender rolls logs into files dated with a date in 1970 - BUG ID 46570

2009-01-20 Thread Lesley Tay
pender config snippet: Also while looking at the DailyRollingFileAppender code, we noticed that there seems to be some un-

DailyRollingFileAppender and MaxBackupIndex

2008-11-17 Thread Rasconi Luca (u.e.)
Hi all, is there a way to use rotate feature on DailyRollingFileAppender. I would like to delete, for example, 4 days old file. Thank you Luca Le informazioni contenute nella presente e-mail potrebbero essere confidenziali e sono dirette unicamente ai

Missing log entries with DailyRollingFileAppender

2008-07-15 Thread praveen#123
debug="false"> is nay thing i am miss config Thanks in advace! jack -- View this message in context: http://www.nabble.com/Missing-log-entries-with-DailyRollingFileAppen

Re: DailyRollingFileAppender

2008-07-08 Thread Thorbjørn Ravn Andersen
[EMAIL PROTECTED] skrev den 08-07-2008 12:02: Hi, I am using DailyRollingFile Appender for manage my log. but i want to backup just the last 5 days? is that possible to do that? The DailyRollingFileAppender does not keep track of versions back in time, so it cannot do what you want. I would

Re: Replace a file in DailyRollingFileAppender

2008-07-08 Thread Thorbjørn Ravn Andersen
Aggarwal, Rajat skrev den 08-07-2008 11:12: Hi Thorbjørn Actually, I have a created a logger instance and am adding an appender to it through my java code. So, I am not sure if I still need to make configuration entries in log4j.properties file. If you want, I can also send across the piece

DailyRollingFileAppender

2008-07-08 Thread [EMAIL PROTECTED]
Hi, I am using DailyRollingFile Appender for manage my log. but i want to backup just the last 5 days? is that possible to do that? Which log4j version that support my needs? this my properties file. - #set the level of the root logger to DEBUG and set its appender as an appender named X

creating new directory with DailyRollingFileAppender ....

2008-07-08 Thread Tushar Chauhan
Hi all, I am using DailyRollingFileAppender for managing logs in my application. I want to create separate folder for logs on hourly basis. For example, Within the logs/ dir I would like to have a folder with today's date and within that date folder I have to create log

RE: Replace a file in DailyRollingFileAppender

2008-07-08 Thread Aggarwal, Rajat
and Regards, Rajat Aggarwal -Original Message- From: Thorbjørn Ravn Andersen [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2008 1:22 PM To: Log4J Users List Subject: Re: Replace a file in DailyRollingFileAppender Aggarwal, Rajat skrev den 08-07-2008 07:44: > Hi All, > >

Re: Replace a file in DailyRollingFileAppender

2008-07-08 Thread Thorbjørn Ravn Andersen
Aggarwal, Rajat skrev den 08-07-2008 07:44: Hi All, Is there any way we can replace a file attached to a particular appender using java code? I am using DailyRollingFileAppender for my purpose and want to log to separate files depending upon certain configurations made in the database. Can

Replace a file in DailyRollingFileAppender

2008-07-07 Thread Aggarwal, Rajat
Hi All, Is there any way we can replace a file attached to a particular appender using java code? I am using DailyRollingFileAppender for my purpose and want to log to separate files depending upon certain configurations made in the database. Can we dynamically change the files an appender is

Using HTMLLayout with DailyRollingFileAppender

2008-07-03 Thread Aggarwal, Rajat
HI All, I have a requirement in one of my prjects that the log files be generated in HTML format and that they should automatically be rolled over everyday. For thi purpose, I am trying to use HTMLLayout with DailyRollingFileAppender. However, the file is not rolled over. Instead, the log

MaxBackupIndex in DailyRollingFileAppender

2008-07-03 Thread Michael Sukianto
Hi, When using a DailyRollingFileAppender, is there any way to specify the maximum number of files which should be kept? I know that the RollingFileAppender supports a maxBackupIndex property, but it seems this is not supported by DailyRollingFileAppender. I don't want t

Using HTMLLayout with DailyRollingFileAppender

2008-07-01 Thread Aggarwal, Rajat
HI All, I have a requirement in one of my prjects that the log files be generated in HTML format and that they should automatically be rolled over everyday. For thi purpose, I am trying to use HTMLLayout with DailyRollingFileAppender. However, the file is not rolled over. Instead, the log

Re: How can I combine using DailyRollingFileAppender with some sort of limit on file size?

2008-06-17 Thread Maarten Bosteels
Kris, please send your questions to the log4j mailing list and not directly to me. On Tue, Jun 17, 2008 at 12:08 PM, Kris Pulakman <[EMAIL PROTECTED]> wrote: > Hello Maarten, > > I am trying to switch to the latest log4j. > I am trying to use the > > import org.apache.log4j.rolling.TriggeringPol

Re: Logging internal problems with the DailyRollingFileAppender

2008-06-03 Thread James A. N. Stauffer
Redirect standard out and standard error. But don't send them to log4j. On Tue, Jun 3, 2008 at 4:01 PM, Vincenzo Vitale <[EMAIL PROTECTED]> wrote: > Hi James, > > thanks for your answer. > > How can I configure where LogLog write the logs? > > On Tue, Jun 3, 2008 at 10:05 PM, James A. N. Stauffer

Re: Logging internal problems with the DailyRollingFileAppender

2008-06-03 Thread Vincenzo Vitale
Hi James, thanks for your answer. How can I configure where LogLog write the logs? On Tue, Jun 3, 2008 at 10:05 PM, James A. N. Stauffer < [EMAIL PROTECTED]> wrote: > LogLog doesn't use the log4j config to log. If it did then there > would be recursive error problems. > > On Fri, May 9, 2008 a

Re: Logging internal problems with the DailyRollingFileAppender

2008-06-03 Thread James A. N. Stauffer
LogLog doesn't use the log4j config to log. If it did then there would be recursive error problems. On Fri, May 9, 2008 at 8:46 PM, Vincenzo Vitale <[EMAIL PROTECTED]> wrote: > Hi, > > in our system (Jboss on Linux) we log in a custom file on a remote machine; > the directory is normally mounted

RE: How Can I Test DailyRollingFileAppender?

2008-05-12 Thread Katy Podolner
48 PM To: log4j-user@logging.apache.org Subject: How Can I Test DailyRollingFileAppender? Hi all, I tried to find an answer for my question in the archives, but I couldn't find it. Please forgive me if this is duplicate post. I'm trying to use DailyRollingFileAppender in the Spring IO

How Can I Test DailyRollingFileAppender?

2008-05-12 Thread Robert Pepersack
Hi all, I tried to find an answer for my question in the archives, but I couldn't find it. Please forgive me if this is duplicate post. I'm trying to use DailyRollingFileAppender in the Spring IOC container (J2SE). My OS is Windows. I've tried to test if DailyRollingFileAppe

Logging internal problems with the DailyRollingFileAppender

2008-05-09 Thread Vincenzo Vitale
Hi, in our system (Jboss on Linux) we log in a custom file on a remote machine; the directory is normally mounted in a way that if something happen Jboss doesn't hang. But it's an important requirement that if for any reason something happen while logging (directory or file not anymore available)

RE: How can I combine using DailyRollingFileAppender with some sort of limit on file size?

2008-05-07 Thread Katy Podolner
Oh. Thanks a lot for the clarification. --Katy -Original Message- From: Maarten Bosteels [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 07, 2008 11:08 AM To: Log4J Users List Subject: Re: How can I combine using DailyRollingFileAppender with some sort of limit on file size? This is my

Re: How can I combine using DailyRollingFileAppender with some sort of limit on file size?

2008-05-07 Thread Maarten Bosteels
TED] > Sent: Wednesday, May 07, 2008 10:24 AM > To: Log4J Users List > Subject: Re: How can I combine using DailyRollingFileAppender with some > sort of limit on file size? > > Hello, > > Here you go : > > import org.apache.log4j.helpers.OptionConverter; > impo

RE: How can I combine using DailyRollingFileAppender with some sort of limit on file size?

2008-05-07 Thread Katy Podolner
teels [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 07, 2008 10:24 AM To: Log4J Users List Subject: Re: How can I combine using DailyRollingFileAppender with some sort of limit on file size? Hello, Here you go : import org.apache.log4j.helpers.OptionConverter; import org.apache.log4j.Appender; i

Re: How can I combine using DailyRollingFileAppender with some sort of limit on file size?

2008-05-07 Thread Maarten Bosteels
On Wed, May 7, 2008 at 8:53 AM, Curt Arnold <[EMAIL PROTECTED]> wrote: > > On May 7, 2008, at 12:50 AM, Katy Podolner wrote: > > > > Since the MaxFileSize and MaxBackupIndex aren't inherited from the > > RollingFileAppender I can't use those when configuring

RE: How can I combine using DailyRollingFileAppender with some sort of limit on file size?

2008-05-07 Thread Katy Podolner
Thanks! I'll look at the new class. --Katy -Original Message- From: Curt Arnold [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 07, 2008 9:54 AM To: Log4J Users List Subject: Re: How can I combine using DailyRollingFileAppender with some sort of limit on file size? On May 7, 200

Re: How can I combine using DailyRollingFileAppender with some sort of limit on file size?

2008-05-06 Thread Curt Arnold
On May 7, 2008, at 12:50 AM, Katy Podolner wrote: Since the MaxFileSize and MaxBackupIndex aren't inherited from the RollingFileAppender I can't use those when configuring appender of class DailyRollingFileAppender in my log4j.xml However I'd like to prevent a situation

How can I combine using DailyRollingFileAppender with some sort of limit on file size?

2008-05-06 Thread Katy Podolner
Since the MaxFileSize and MaxBackupIndex aren't inherited from the RollingFileAppender I can't use those when configuring appender of class DailyRollingFileAppender in my log4j.xml However I'd like to prevent a situation where the error logs take up a non limited amount of di

Re: DailyRollingFileAppender - force rollover

2008-03-27 Thread James A. N. Stauffer
I think the next version of log4j is supposed to support that but you would have to write your own appender to get that in the current version. On Thu, Mar 27, 2008 at 5:24 AM, Gerrit Grobbelaar <[EMAIL PROTECTED]> wrote: > Hi all, > > Is there a config way of telling the appender to rollover not

DailyRollingFileAppender - force rollover

2008-03-27 Thread Gerrit Grobbelaar
Hi all, Is there a config way of telling the appender to rollover not only when there is log activity, but also when the time goes from AM to PM (midday) and from PM to AM (midnight) automatically without any log activity at those times? Any input is greatly appreciated, Gerrit ---

RE: expiry of DailyRollingFileAppender old logs

2007-12-10 Thread Michael Erskine
Whoops! > long now = System.currentTimeMillis(); > File[] files = getExpiredLogfiles(fileNameRoot, datePattern, null, > new Date(now + maxage)); That Date should be new Date(now - maxAge) since maxAge is defined as... private static long maxage = 7 * DateUtils

RE: expiry of DailyRollingFileAppender old logs

2007-12-10 Thread Michael Erskine
t the customer's acceptance tests will be doing!). The following is my first attempt and it seems to work well for my DailyRollingFileAppender with the default DatePattern but I suspect it may work with any since the pattern is delegated to SimpleDateFormat. The following two methods are

Re: expiry of DailyRollingFileAppender old logs

2007-12-10 Thread dirk ooms
s > when using a DailyRollingFileAppender. Rather than extend > DailyRollingFileAppender I've decided to execute a task from time to time > that given the name of the Appender, looks for old logfiles that match the > file and datePattern properties and deletes those that appear to be too >

expiry of DailyRollingFileAppender old logs

2007-12-10 Thread Michael Erskine
Hi, I have a requirement to delete logfiles older than a certain number of days when using a DailyRollingFileAppender. Rather than extend DailyRollingFileAppender I've decided to execute a task from time to time that given the name of the Appender, looks for old logfiles that match the fil

Re: Setting Header for DailyRollingFileAppender

2007-11-16 Thread Matthew Kemp
You need to extend one of the layout classes and add in getters and setters. The header and footer in Layout only return null - indicating no header/footer. On Nov 15, 2007 7:43 PM, Satish Musunuru <[EMAIL PROTECTED]> wrote: > Hi, > How can I set the header for DailyRolling

Setting Header for DailyRollingFileAppender

2007-11-15 Thread Satish Musunuru
Hi, How can I set the header for DailyRollingFileAppender programmatically? I see only getters for the header and footer, no setters in both the Layout and the PatternLayout classes. Thanks, Satish

RollingFileAppender & DailyRollingFileAppender does not create backup

2007-09-21 Thread Sangeetha Priya S
Hi, I am using log4j1.2.15 in weblogic8.1 I need RollingFileAppender or DailyRollingFileAppender for my application. here is the log4j xml where in tried both

Re: DailyRollingFileAppender for multiple threads

2007-05-29 Thread rovelgoenne
> >> > On 5/14/07, rovelgoenne <[EMAIL PROTECTED]> wrote: >> >> >> >> I start multiple threads where every thread should log to his own >> file. >> >> Therefor I did: >> >> - every thread has a number >> >> - for every threa

Re: DailyRollingFileAppender for multiple threads

2007-05-15 Thread James Stauffer
ry thread has a number >> - for every thread I get a logger with "name" + number >> - in every logger I add an DailyRollingFileAppender >> - in the thread I log to the connected logger >> So everything works fine. Every thread logs to his file. >>

Re: DailyRollingFileAppender for multiple threads

2007-05-15 Thread rovelgoenne
has a number >> - for every thread I get a logger with "name" + number >> - in every logger I add an DailyRollingFileAppender >> - in the thread I log to the connected logger >> So everything works fine. Every thread logs to his file. >> >> Co

Re: DailyRollingFileAppender for multiple threads

2007-05-14 Thread James Stauffer
every thread I get a logger with "name" + number - in every logger I add an DailyRollingFileAppender - in the thread I log to the connected logger So everything works fine. Every thread logs to his file. Code (initialization): DailyRollingFileAppender fileAppender; fo

DailyRollingFileAppender for multiple threads

2007-05-14 Thread rovelgoenne
I start multiple threads where every thread should log to his own file. Therefor I did: - every thread has a number - for every thread I get a logger with "name" + number - in every logger I add an DailyRollingFileAppender - in the thread I log to the connected logger So everything

Re: Enh rqst: a variation on DailyRollingFileAppender

2007-03-24 Thread James Stauffer
Can you give details so I can determine if my appender has similiar problems? On 3/23/07, Curt Arnold <[EMAIL PROTECTED]> wrote: On Mar 23, 2007, at 1:12 PM, James Stauffer wrote: > What problem are there? I am using my DateFormatFileAppender > extensively in production (web app) and haven't

Re: Enh rqst: a variation on DailyRollingFileAppender

2007-03-23 Thread Curt Arnold
On Mar 23, 2007, at 1:12 PM, James Stauffer wrote: What problem are there? I am using my DateFormatFileAppender extensively in production (web app) and haven't noticed any issues. The comment only applied to org.apache.log4j.RollingFileAppender and org.apache.log4j.DailyRollingFileAppende

Re: Enh rqst: a variation on DailyRollingFileAppender

2007-03-23 Thread James Stauffer
What problem are there? I am using my DateFormatFileAppender extensively in production (web app) and haven't noticed any issues. On 3/23/07, Curt Arnold <[EMAIL PROTECTED]> wrote: The renaming and close then reopen logic in the rolling file appenders are problematic. There was some discussion

Re: Enh rqst: a variation on DailyRollingFileAppender

2007-03-23 Thread Curt Arnold
On Mar 23, 2007, at 10:02 AM, Andrew Marlow wrote: guys, I am using DailyRollingFileAppender to have an AM and PM log for each day. This isn't quite what I want but is close enough for now. What I would really like is an appender that writes directly to the target file, rather than it wr

Re: Enh rqst: a variation on DailyRollingFileAppender

2007-03-23 Thread James Stauffer
DateFormatFileAppender doesn't require you to use sub-directories. You are correct that it doesn't support groupings of hours (watches). Both DateFormateFileAppender and DailyRollingFileAppender use SimpleDateFormat so they only work for the patterns in that class. I suspect that your

RE: Enh rqst: a variation on DailyRollingFileAppender

2007-03-23 Thread Andrew Marlow
James Stauffer wrote: > I wrote an appender that always uses the formatted name. > http://stauffer.james.googlepages.com/DateFormatFileAppender.java > > On 3/23/07, Andrew Marlow <[EMAIL PROTECTED]> wrote: >> guys, >> >> What I >> would really like is an appender that writes directly to the targe

Re: Enh rqst: a variation on DailyRollingFileAppender

2007-03-23 Thread James Stauffer
I wrote an appender that always uses the formatted name. http://stauffer.james.googlepages.com/DateFormatFileAppender.java On 3/23/07, Andrew Marlow <[EMAIL PROTECTED]> wrote: guys, I am using DailyRollingFileAppender to have an AM and PM log for each day. This isn't quite what I

  1   2   3   >