logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carn...@apache.org
Subject svn commit: r439183 - /logging/log4j/trunk/src/java/org/apache/log4j/DailyRollingFileAppender.java
Date Fri, 01 Sep 2006 05:13:37 GMT
Author: carnold
Date: Thu Aug 31 22:13:37 2006
New Revision: 439183

URL: http://svn.apache.org/viewvc?rev=439183&view=rev
Log:
Bug 38559: Monthly logs not generated at midnight with DRFA

Modified:
    logging/log4j/trunk/src/java/org/apache/log4j/DailyRollingFileAppender.java

Modified: logging/log4j/trunk/src/java/org/apache/log4j/DailyRollingFileAppender.java
URL: http://svn.apache.org/viewvc/logging/log4j/trunk/src/java/org/apache/log4j/DailyRollingFileAppender.java?rev=439183&r1=439182&r2=439183&view=diff
==============================================================================
--- logging/log4j/trunk/src/java/org/apache/log4j/DailyRollingFileAppender.java (original)
+++ logging/log4j/trunk/src/java/org/apache/log4j/DailyRollingFileAppender.java Thu Aug 31
22:13:37 2006
@@ -424,6 +424,7 @@
     case DailyRollingFileAppender.TOP_OF_WEEK:
 	this.set(Calendar.DAY_OF_WEEK, getFirstDayOfWeek());
 	this.set(Calendar.HOUR_OF_DAY, 0);
+	this.set(Calendar.MINUTE, 0);
 	this.set(Calendar.SECOND, 0);
 	this.set(Calendar.MILLISECOND, 0);
 	this.add(Calendar.WEEK_OF_YEAR, 1);
@@ -431,6 +432,7 @@
     case DailyRollingFileAppender.TOP_OF_MONTH:
 	this.set(Calendar.DATE, 1);
 	this.set(Calendar.HOUR_OF_DAY, 0);
+	this.set(Calendar.MINUTE, 0);
 	this.set(Calendar.SECOND, 0);
 	this.set(Calendar.MILLISECOND, 0);
 	this.add(Calendar.MONTH, 1);



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


Mime
View raw message