Re: AW: DailyRollingFileAppender with filesize option

2003-12-01 Thread Paul Smith
Hi Carsten,

It is my understanding, and I may be wrong here, that Ceki has
completely rewritten the whole rolling appender framework to allow much
more flexibility in the composition of different rules for rolling. This
unfortunately not in the released version at this time, but the 1.3
release is not that far away.

We appreciate your contribution, perhaps you could attach the files to a
bug item (if you haven't done so already), so that your efforts don't
get lost if my understanding is not correct.

cheers,

Paul Smith

On Mon, 2003-12-01 at 20:57, Bansemir, Carsten wrote:
> Hi, some time ago i wrote the following to the log4j-dev mailing list:
> 
> 
> Hi, 
> I had several problems with the DailyRollingFileAppender (see user mailing list), so 
> I downloaded the DailyRollingAppenderExt.jar but I can't find the source of this 
> file again (so I also can't find out the author of this Class).
> 
> I extended this class so that the Appender rolls by date AND by size, like the 
> CompositeRollingFileAppender does, with the difference that it logs to a different 
> file every day, without having to rename any files (that was the problem with 
> threads logging to yesterday's dir because the Java method "renameTo()" fails in the 
> RollingFileAppender or the CompositeRollingFileAppender.
> 
> My question is: Are you interested in this Appender? and if so, do you know who the 
> original author of DailyRollingFileAppenderExt was? 
> I would like to give this appender out to the people searching for something like 
> that in the mailing list, it's almost an FAQ, but I would like to ask the original 
> author before.
> 
> 
> So if someone finds out the the author of the original DailyRollingFileAppenderExt 
> please tell me, that I can give out the modified one to the people who want it.
> 
> 
> -UrsprÃngliche Nachricht-
> Von: Manju Joseph [mailto:[EMAIL PROTECTED]
> Gesendet: Sonntag, 30. November 2003 03:08
> An: [EMAIL PROTECTED]
> Betreff: Fwd: DailyRollingFileAppender with filesize option
> 
> 
> 
> 
> Hello..,
> 
> Me too getting the same error.Can  any one help
> 
> 
> MANJU
> 
> >From: "Divya Shetty" <[EMAIL PROTECTED]>
> >Reply-To: "Log4J Users List" <[EMAIL PROTECTED]>
> >To: "Log4J Users List" <[EMAIL PROTECTED]>
> >Subject: DailyRollingFileAppender with filesize option
> >Date: Sat, 29 Nov 2003 14:30:46 +0530
> >
> >In the CompositeRollingAppender, the reference made to setFile provides a 
> >String and boolean as parameter while the setFile in FileAppender which 
> >accepts two arguments expects Layout and Boolean.
> >Hence am unable to compile ti..
> >
> >None in our project has used log4J before and the lack of time is causing 
> >to be a deterent in workign it out for ourselves.
> >Would it be possible to either download the CompositeRollingAppender.class 
> >or the jar which has been updated with the CompositeRollingAppender.class ?
> >
> >
> >
> >- Original Message -
> >From: Divya Shetty
> >To: Log4J Users List
> >Sent: Saturday, November 29, 2003 1:32 PM
> >Subject: Fw: DailyRollingFileAppender with filesize option
> >
> >
> >I downloaded log4j-1.2.8.jar.
> >Along with this i found the CompositeRollingAppender.java in the 
> >contributions folder.
> >
> >In this file, on line 362 the method super.setFile(fileName, append) is 
> >called.
> >In the FileAppender, there is no overloaded method where only two arguments 
> >are provided and hence it fails in the compilation.
> >
> >Is this a known issue or has someone already resolved it?
> >
> >Thanks
> >
> >Divya
> >
> >- Original Message -
> >From: Divya Shetty
> >To: Log4J Users List
> >Sent: Saturday, November 29, 2003 11:00 AM
> >Subject: DailyRollingFileAppender with filesize option
> >
> >
> >Hi,
> >
> >I have the following log4j property file:
> >
> >log4j.rootLogger=debug, A
> >log4j.logger.SickPay=debug, SP
> >
> >log4j.appender.SP=org.apache.log4j.DailyRollingFileAppender
> >log4j.appender.SP.File=COMMON~1\\Trial\\SP.log
> >log4j.appender.SP.MaxFileSize=1KB
> >log4j.appender.SP.MaxBackupIndex=6
> >log4j.appender.SP.layout=org.apache.log4j.PatternLayout
> >log4j.appender.SP.layout.ConversionPattern=%d ::%m%n
> >
> >I need to roll over the file on basis of both the date and Size of the 
> >file.
> >When i run the application it gives me the compilation error:
> >log4j:WARN No such property [maxBackupIndex] in 
> >org.apache.log4j.DailyRollingFileAppender.
> >log4j:WARN No such property [maxFileSize] in 
> >org.apache.log4j.DailyRollingFileAppender.
> >
> >I checked the Mail list archive and there was a suggestion that one use 
> >CompositeRollingFileAppender.
> >Where can i find CompositeRollingFileAppender?
> >
> >Could anyone suggest a way to implement this?
> >
> >Regards,
> >Divya Shetty
> 
> _
> BharatMatrimony.com. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74
> India's premium matrimonial website.
> 
> 
> 

AW: DailyRollingFileAppender with filesize option

2003-12-01 Thread Bansemir, Carsten
Hi, some time ago i wrote the following to the log4j-dev mailing list:


Hi, 
I had several problems with the DailyRollingFileAppender (see user mailing list), so I 
downloaded the DailyRollingAppenderExt.jar but I can't find the source of this file 
again (so I also can't find out the author of this Class).

I extended this class so that the Appender rolls by date AND by size, like the 
CompositeRollingFileAppender does, with the difference that it logs to a different 
file every day, without having to rename any files (that was the problem with threads 
logging to yesterday's dir because the Java method "renameTo()" fails in the 
RollingFileAppender or the CompositeRollingFileAppender.

My question is: Are you interested in this Appender? and if so, do you know who the 
original author of DailyRollingFileAppenderExt was? 
I would like to give this appender out to the people searching for something like that 
in the mailing list, it's almost an FAQ, but I would like to ask the original author 
before.


So if someone finds out the the author of the original DailyRollingFileAppenderExt 
please tell me, that I can give out the modified one to the people who want it.


-Ursprüngliche Nachricht-
Von: Manju Joseph [mailto:[EMAIL PROTECTED]
Gesendet: Sonntag, 30. November 2003 03:08
An: [EMAIL PROTECTED]
Betreff: Fwd: DailyRollingFileAppender with filesize option




Hello..,

Me too getting the same error.Can  any one help


MANJU

>From: "Divya Shetty" <[EMAIL PROTECTED]>
>Reply-To: "Log4J Users List" <[EMAIL PROTECTED]>
>To: "Log4J Users List" <[EMAIL PROTECTED]>
>Subject: DailyRollingFileAppender with filesize option
>Date: Sat, 29 Nov 2003 14:30:46 +0530
>
>In the CompositeRollingAppender, the reference made to setFile provides a 
>String and boolean as parameter while the setFile in FileAppender which 
>accepts two arguments expects Layout and Boolean.
>Hence am unable to compile ti..
>
>None in our project has used log4J before and the lack of time is causing 
>to be a deterent in workign it out for ourselves.
>Would it be possible to either download the CompositeRollingAppender.class 
>or the jar which has been updated with the CompositeRollingAppender.class ?
>
>
>
>- Original Message -
>From: Divya Shetty
>To: Log4J Users List
>Sent: Saturday, November 29, 2003 1:32 PM
>Subject: Fw: DailyRollingFileAppender with filesize option
>
>
>I downloaded log4j-1.2.8.jar.
>Along with this i found the CompositeRollingAppender.java in the 
>contributions folder.
>
>In this file, on line 362 the method super.setFile(fileName, append) is 
>called.
>In the FileAppender, there is no overloaded method where only two arguments 
>are provided and hence it fails in the compilation.
>
>Is this a known issue or has someone already resolved it?
>
>Thanks
>
>Divya
>
>- Original Message -
>From: Divya Shetty
>To: Log4J Users List
>Sent: Saturday, November 29, 2003 11:00 AM
>Subject: DailyRollingFileAppender with filesize option
>
>
>Hi,
>
>I have the following log4j property file:
>
>log4j.rootLogger=debug, A
>log4j.logger.SickPay=debug, SP
>
>log4j.appender.SP=org.apache.log4j.DailyRollingFileAppender
>log4j.appender.SP.File=COMMON~1\\Trial\\SP.log
>log4j.appender.SP.MaxFileSize=1KB
>log4j.appender.SP.MaxBackupIndex=6
>log4j.appender.SP.layout=org.apache.log4j.PatternLayout
>log4j.appender.SP.layout.ConversionPattern=%d ::%m%n
>
>I need to roll over the file on basis of both the date and Size of the 
>file.
>When i run the application it gives me the compilation error:
>log4j:WARN No such property [maxBackupIndex] in 
>org.apache.log4j.DailyRollingFileAppender.
>log4j:WARN No such property [maxFileSize] in 
>org.apache.log4j.DailyRollingFileAppender.
>
>I checked the Mail list archive and there was a suggestion that one use 
>CompositeRollingFileAppender.
>Where can i find CompositeRollingFileAppender?
>
>Could anyone suggest a way to implement this?
>
>Regards,
>Divya Shetty

_
BharatMatrimony.com. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74 
India's premium matrimonial website.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: DailyRollingFileAppender with filesize option

2003-09-25 Thread Bansemir, Carsten
Since this is almost a FAQ but an (real good) Answer is nowhere to find in the 
list-archive (yes, I searched it more than 1 times), i want to specify the question so 
that it's really an unanswered question:

First some things to say:

- there is an Implementation of a combined DailyRollingFileAppender and 
RollingFileAppender, called  CompositeRollingAppender, and with this Appender you 
can choose the Rolling Behavior (1=by size, 2=by date, and 3=both I think)

- BUT there is a Problem with the DailyRollingFileAppender running under windows, 
because the java method renameTo() doesn't work fine with Threads logging to a file, 
when the rollover happens (after midnight some Threads are still logging to yesterdays 
logfile (see mailing list).

- this Problem is fixed by an Appender called DailyRollingFileAppenderExt (see mailing 
list)

- the CompositeRollingAppender has the same Problem than the DailyRollingFileAppender, 
so I can't use it.

- I also know that there gonna be big changes in Rolling Strategys in the next Ant 
release, which fixes this Problem.

- but for now there is no (i found none) working Implementation of a Combined Appender 
wich rolls by size and by date.


Now, here comes the question:

So, I want to know if there's a combination of DailyRollingFileAppenderExt and 
RollingFileAppender, or some complete new designed Appender with the same 
functionality ?


-Ursprüngliche Nachricht-
Von: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 25. September 2003 17:10
An: Log4J Users List
Betreff: RE: DailyRollingFileAppender with filesize option



Howdy,
Here's a pointer: http://marc.theaimsgroup.com/?l=log4j-user&r=1&w=2

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 25, 2003 11:07 AM
>To: Log4J Users List
>Subject: DailyRollingFileAppender with filesize option
>
>
>
>
>
>Has anyone already already created a RollingFileAppender which rolls at
>midnight and also if the filesize limit is exceeded ?
>
>Thanks for any pointers.
>
>Shuchi



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]