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 Janusz Dalecki <jd...@tycoint.com> on 2002/04/09 04:39:38 UTC

RE: RollingFileAppender and DailyRollingFileAppender

Hi,
Kevin, I am trying to use CompositeRollingAppender, but whenever I use
MB,KB,GB postfix for MaxFileSize I get a
"java.lang.NumberFormatException: 10MB" exception. Am I doing something
wrong - I haver attached my config file.
Janusz

-----Original Message-----
From: Kevin Steppe [mailto:ksteppe@pacbell.net]
Sent: Thursday, March 28, 2002 5:29 PM
To: Log4J Users List
Subject: Re: RollingFileAppender and DailyRollingFileAppender


I wrote a CompositeRollingAppender last August to do that.  I'm
attaching that
code and some example config files to you separately.

Ceki... Could you please put these files in the
log4j/contribs/KevinSteppe
folder of the available releases?  This seems to be coming up
occasionally and
it would be more convenient to just point people there.

Thanks,
Kevin


Janusz Dalecki wrote:

> Is there a way of having the mixture of both RollingFileAppender and
> DailyRollingFileAppender options?. I have a requirement to log daily
and
> delete old files weekly.
> Thanks,
> Janusz
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>

RE: RollingFileAppender and DailyRollingFileAppender

Posted by Kevin Steppe <ke...@yahoo.com>.
I thought that worked... I'm currently visiting
relatives so I'll look into it Wednesday or Thursday. 
If you need something before then, I recommed you look
into how the RollingFileAppender does things (it has
to do with the setMaxFileSize(String) vs
setMaxFileSize(int)

Kevin

--- Janusz Dalecki <jd...@tycoint.com> wrote:
> Hi,
> Kevin, I am trying to use CompositeRollingAppender,
> but whenever I use
> MB,KB,GB postfix for MaxFileSize I get a
> "java.lang.NumberFormatException: 10MB" exception.
> Am I doing something
> wrong - I haver attached my config file.
> Janusz
> 
> -----Original Message-----
> From: Kevin Steppe [mailto:ksteppe@pacbell.net]
> Sent: Thursday, March 28, 2002 5:29 PM
> To: Log4J Users List
> Subject: Re: RollingFileAppender and
> DailyRollingFileAppender
> 
> 
> I wrote a CompositeRollingAppender last August to do
> that.  I'm
> attaching that
> code and some example config files to you
> separately.
> 
> Ceki... Could you please put these files in the
> log4j/contribs/KevinSteppe
> folder of the available releases?  This seems to be
> coming up
> occasionally and
> it would be more convenient to just point people
> there.
> 
> Thanks,
> Kevin
> 
> 
> Janusz Dalecki wrote:
> 
> > Is there a way of having the mixture of both
> RollingFileAppender and
> > DailyRollingFileAppender options?. I have a
> requirement to log daily
> and
> > delete old files weekly.
> > Thanks,
> > Janusz
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 

> ATTACHMENT part 2 application/octet-stream
name=scheduler_log4j.properties
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>