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 Abhay <ab...@math.net> on 2006/02/23 22:57:33 UTC

Appending date to log file

Hi,

I want to append the date to log file dynamically.

It should be in following format  :

filename.date.log

Many thanks in advance
Abhay


---------------------------------------------------------------------
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 log file

Posted by James Stauffer <st...@gmail.com>.
If you use DailyRollingFileAppender you can get something like
filename.log.date (i.e filename.log.2006-02-23).

On 2/23/06, Abhay <ab...@math.net> wrote:
> Hi,
>
> I want to append the date to log file dynamically.
>
> It should be in following format  :
>
> filename.date.log
>
> Many thanks in advance
> Abhay
>
>
> ---------------------------------------------------------------------
> 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