Browse Source

REPORT-42043 fanruan.log无法分割-加个volatile

bokai 4 years ago
parent
commit
9900b8bae5
  1. 2
      fine-log4j/src/main/java/com/fr/third/apache/log4j/DailyRollingFileAppender.java

2
fine-log4j/src/main/java/com/fr/third/apache/log4j/DailyRollingFileAppender.java

@ -174,7 +174,7 @@ public class DailyRollingFileAppender extends FileAppender {
The precise time when a rollover occurs depends on logging
activity.
*/
private String scheduledFilename;
private volatile String scheduledFilename;
/**
The next time we estimate a rollover should occur. */

Loading…
Cancel
Save