Re: maxBackupIndex with DailyRollingFileAppender

2007-03-01 Thread Curt Arnold

On Mar 1, 2007, at 10:04 AM, James Stauffer wrote:


In 1.2 no, but I think that is supported in 1.3.  In 1.2 you could set
up a cron job to delete the extra files.



If has been a frequently requested feature, but definitely non- 
obvious to implement on top of the existing org.apache.log4j.DRFA  
since the user-specified date pattern makes it difficult to determine  
the corresponding date from the file name when the pattern omitted  
significant parts of the date and to determine the minimum number of  
intervals that would result in an arbitrary file name.


I started some work on a MultiFileAppender and this scenario was one  
of its use cases, but the work stalled around ApacheCON and before  
there was anything usable.  I hope to get back to it.











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



Re: More than one appender (pointing to different outputs) for a same package scope

2007-03-01 Thread James Stauffer

No.  but you can do the following instead:

 
   
   
   
 

Then set a threshold of info on mainAppenderInfo.

On 3/1/07, DECAFFMEYER MATHIEU <[EMAIL PROTECTED]> wrote:





Hi,

Is something like this allowed ?
More than one appender (pointing to different outputs) for two loggers
pointing to same scope :

  


  
  


  

In one file I want everything from the info level,
in another everything from the debug level


Thank u.
__
   Matt

 
 Internet communications are not secure and therefore Fortis Banque
Luxembourg S.A. does not accept legal responsibility for the contents of
this message. The information contained in this e-mail is confidential and
may be legally privileged. It is intended solely for the addressee. If you
are not the intended recipient, any disclosure, copying, distribution or any
action taken or omitted to be taken in reliance on it, is prohibited and may
be unlawful. Nothing in the message is capable or intended to create any
legally binding obligations on either party and it is not intended to
provide legal advice.
 

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




--
James Staufferhttp://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

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



More than one appender (pointing to different outputs) for a same package scope

2007-03-01 Thread DECAFFMEYER MATHIEU

Hi,

Is something like this allowed ?
More than one appender (pointing to different outputs) for two loggers
pointing to same scope :

  


  
  


  

In one file I want everything from the info level,
in another everything from the debug level


Thank u.
__
   Matt




Internet communications are not secure and therefore Fortis Banque Luxembourg 
S.A. does not accept legal responsibility for the contents of this message. The 
information contained in this e-mail is confidential and may be legally 
privileged. It is intended solely for the addressee. If you are not the 
intended recipient, any disclosure, copying, distribution or any action taken 
or omitted to be taken in reliance on it, is prohibited and may be unlawful. 
Nothing in the message is capable or intended to create any legally binding 
obligations on either party and it is not intended to provide legal advice.


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

AW: maxBackupIndex with DailyRollingFileAppender

2007-03-01 Thread Wyss Patrick
i made 3 extensions to DailyRoling file appender:
1) dated => the current logfile will also include the date and will not be 
renamed on rolling
2) compressing => old logs are compressed.
3) "cleaning" => stupid name but it will delete all files ending with zip which 
are older than the given max date.

you can have a look at it and write your own appender which does exactly what 
you want. it's not difficult... 
you probably should do some tests tough

http://www.nabble.com/file/5911/log4jCompressingAppender-src.zip

> -Ursprüngliche Nachricht-
> Von: DM [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 1. März 2007 17:23
> An: Log4J Users List
> Betreff: Re: maxBackupIndex with DailyRollingFileAppender
> 
> 
> Thanks for the response. I guess I'll have to wait for 1.3 
> then. The following page on the wiki:
> http://wiki.apache.org/logging-log4j/DailyRollingFileAppender
> 
> indicates that somebody has extended 
> DailyRolloingFileAppender to include this feature, but I'm 
> not sure if this has been included in an official release?
> 
> 
> - Original Message 
> From: James Stauffer <[EMAIL PROTECTED]>
> To: Log4J Users List 
> Sent: Thursday, 1 March, 2007 11:04:10 AM
> Subject: Re: maxBackupIndex with DailyRollingFileAppender
> 
> 
> In 1.2 no, but I think that is supported in 1.3.  In 1.2 you could set
> up a cron job to delete the extra files.
> 
> On 3/1/07, DM <[EMAIL PROTECTED]> wrote:
> > 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 to use 
> RollingFileAppender because I want the files to rollover 
> every day, rather than when they reach a certain size. So my 
> requirements are:
> >
> > - Roll files over daily
> > - Only keep the last 5 log files
> >
> > Thanks in Advance,
> > DM
> >
> >
> >
> > ___
> > Now you can scan emails quickly with a reading pane. Get 
> the new Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -- 
> James Staufferhttp://www.geocities.com/stauffer_james/
> Are you good? Take the test at http://www.livingwaters.com/good/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
>   
>   
>   
> ___ 
> New Yahoo! Mail is the ultimate force in competitive 
> emailing. Find out more at the Yahoo! Mail Championships. 
> Plus: play games and win prizes. 
> http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk 
> 
> -
> 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]



Re: maxBackupIndex with DailyRollingFileAppender

2007-03-01 Thread James Stauffer

1.2 generally only gets bug fixes so it is highly unlikely that it
would get that feature added.

On 3/1/07, DM <[EMAIL PROTECTED]> wrote:

Thanks for the response. I guess I'll have to wait for 1.3 then. The following 
page on the wiki:
http://wiki.apache.org/logging-log4j/DailyRollingFileAppender

indicates that somebody has extended DailyRolloingFileAppender to include this 
feature, but I'm not sure if this has been included in an official release?



--
James Staufferhttp://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

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



Re: maxBackupIndex with DailyRollingFileAppender

2007-03-01 Thread DM
Thanks for the response. I guess I'll have to wait for 1.3 then. The following 
page on the wiki:
http://wiki.apache.org/logging-log4j/DailyRollingFileAppender

indicates that somebody has extended DailyRolloingFileAppender to include this 
feature, but I'm not sure if this has been included in an official release?


- Original Message 
From: James Stauffer <[EMAIL PROTECTED]>
To: Log4J Users List 
Sent: Thursday, 1 March, 2007 11:04:10 AM
Subject: Re: maxBackupIndex with DailyRollingFileAppender


In 1.2 no, but I think that is supported in 1.3.  In 1.2 you could set
up a cron job to delete the extra files.

On 3/1/07, DM <[EMAIL PROTECTED]> wrote:
> 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 to use 
> RollingFileAppender because I want the files to rollover every day, rather 
> than when they reach a certain size. So my requirements are:
>
> - Roll files over daily
> - Only keep the last 5 log files
>
> Thanks in Advance,
> DM
>
>
>
> ___
> Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail. 
> http://uk.docs.yahoo.com/nowyoucan.html
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
James Staufferhttp://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

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





___ 
New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at 
the Yahoo! Mail Championships. Plus: play games and win prizes. 
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk

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



Re: maxBackupIndex with DailyRollingFileAppender

2007-03-01 Thread James Stauffer

In 1.2 no, but I think that is supported in 1.3.  In 1.2 you could set
up a cron job to delete the extra files.

On 3/1/07, DM <[EMAIL PROTECTED]> wrote:

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 to use RollingFileAppender because I 
want the files to rollover every day, rather than when they reach a certain 
size. So my requirements are:

- Roll files over daily
- Only keep the last 5 log files

Thanks in Advance,
DM



___
Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail. 
http://uk.docs.yahoo.com/nowyoucan.html

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





--
James Staufferhttp://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

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



maxBackupIndex with DailyRollingFileAppender

2007-03-01 Thread DM
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 to use RollingFileAppender because I 
want the files to rollover every day, rather than when they reach a certain 
size. So my requirements are:

- Roll files over daily
- Only keep the last 5 log files

Thanks in Advance,
DM



___ 
Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail. 
http://uk.docs.yahoo.com/nowyoucan.html

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