logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohit Anchlia <mohitanch...@gmail.com>
Subject Re: timestamp in rolled over files
Date Tue, 03 Mar 2009 22:59:09 GMT
Do you have an example of that? I couldn't find it.

On Tue, Mar 3, 2009 at 1:09 PM, Simon Park <simon_park_mail@yahoo.co.uk> wrote:
> You could maybe use the org.apache.log4j.DailyRollingFileAppender to roll by time only.
 You use a pattern compatible with java.text.SimpleDateFormat to configure the appender's
DatePattern property with the period you want files to roll, e.g. by any one of minute, hour,
half-day, day, week, etc.
>
>
>
>
> ________________________________
> From: Mohit Anchlia <mohitanchlia@gmail.com>
> To: log4j-user@logging.apache.org
> Sent: Tuesday, 3 March, 2009 20:19:10
> Subject: timestamp in rolled over files
>
> Is there a way to get the timestamp instead of .1 .2 etc. when a log
> file is rolled over by log4j?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message