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 Anna <ri...@yahoo.com> on 2006/04/10 08:52:07 UTC
Appending date to RollingFileAppender
Hi,
I want to use RollingFileAppender to rollover my log files when they reach a
particular size. But, instead of renaming the files "filename.log.1" I would
like them to be renamed "filename.log.date" (with the date appended). Is there
any way this can be done?
Thanks in Advance,
Anna
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Appending date to RollingFileAppender
Posted by James Stauffer <st...@gmail.com>.
log4j 1.2 doesn't support this (unless you write your own appender --
which isn't too hard) but 1.3 might.
On 4/10/06, Anna <ri...@yahoo.com> wrote:
> Hi,
>
> I want to use RollingFileAppender to rollover my log files when they reach a
> particular size. But, instead of renaming the files "filename.log.1" I would
> like them to be renamed "filename.log.date" (with the date appended). Is there
> any way this can be done?
>
> Thanks in Advance,
> Anna
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org