logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shaily Goel" <gsha...@novell.com>
Subject DatePatterns in RollingFileAppender
Date Wed, 17 Aug 2005 10:52:29 GMT
Hi
 
I am using RollingFileAppender to log the messages. The
RollingFileAppender should roll the files based on Date. For this, I
need to set "DatePattern" property of RollingFileAppender. I am not able
to find the correct DatePatterns that should be used for following.
Please give me the examples that what date patterns should  I use for
following:
 
1.  Rollover at the beginning of each month
2.  Rollover at the first day of each week. The first day of the week
depends on the locale.
3.  Rollover at midnight each day 
4.  Rollover at midnight and midday of each day
5.  Rollover at the top of every hour
6.  Rollover at the beginning of every minute
 
Thanks
Shaily
 
 

Mime
View raw message