logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Park <simon_park_m...@yahoo.co.uk>
Subject Re: timestamp in rolled over files
Date Tue, 03 Mar 2009 21:09:01 GMT
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


      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message