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 <[email protected]>
To: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]


      

Reply via email to