Nothing in Log4J that does that right now -- you'd have to modify something
yourself. I'd suggest taking CompositeRollingAppender (from the cvs) and put
the rollOverTime() code into the rollOverSize() method.
If you can wait a few days I'll put some code together for it.
Kevin
Alexander Cerna wrote:
> Btw, what I mean is that I like RollingFileAppender's feature of being able
> to roll when a file size limit has been reached, but would like to postfix
> using date and time stamps like DailyRollingFileAppender's.
>
> Thanks again in advance.
> Alex
>
> >From: "Alexander Cerna" <[EMAIL PROTECTED]>
> >Reply-To: "LOG4J Developers Mailing List" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: newbie question about RollingFileAppender
> >Date: Fri, 03 Aug 2001 16:11:56 -0400
> >
> >Instead of rolling log files using numeric index postfixes, is there a way
> >to postfix a date and time stamp string instead, e.g., myClass.log gets
> >rolled over as myClass.log.20010803_1612? I've tried scouring
> >http://jakarta.apache.org/log4j/docs/api/index.html but couldn't find what
> >I
> >need.
> >
> >Of course this would mean that these files will fill up the partition
> >unless
> >there's some regular cronjob to do maintenance archiving and zipping (which
> >there'll be).
> >
> >Thanks a lot in advance.
> >Alex
> >
> >
> >
> >_________________________________________________________________
> >Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
> ---------------------------------------------------------------------
> 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]