DatePattern  |  
   Rollover schedule  |  
   Example  |  
  
  |  
   Rollover at the beginning of each month  |  
   At midnight of May 31st, 2002   |  
  
  |  
   Rollover at the first day of each week. The first day of the week depends on the locale.  |  
   Assuming the first day of the week is Sunday, on Saturday midnight, June 9th 2002, the file /foo/bar.logwill be copied to /foo/bar.log.2002-23 . Logging for the 24th week of 2002 will be output to   |  
  
  |  
   Rollover at midnight each day.  |  
   At midnight, on March 8th, 2002,   |  
  
  |  
   Rollover at midnight and midday of each day.  |  
   At noon, on March 9th, 2002,   |  
  
  |  
   Rollover at the top of every hour.  |  
   At approximately 11:00.000 o'clock on March 9th, 2002,  |  
  
  |  
   Rollover at the beginning of every minute.  |  
   At approximately 11:23,000, on March 9th, 2001,   |  
  
来源:oschina
链接:https://my.oschina.net/u/109139/blog/80849
