apache / apache/logging-log4j2
Logfile not rotating when falling back on DST
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.7k
- Avg merge
- 21h 30m
- Merged PRs (30d)
- 27
Description
## Description
```
%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%t] [%c{1}] %m%n
UTF-8
```
Based on the CronTriggeringPolicy above, logs should roll ever hour, and it normally works perfectly, as intended. However on the DST fallback night (11/1) the log didn't roll on the 1am hour **_the first time_**. That means that by the time the clock was 2 am, the log had the contents of the 00 and 01 hour. And then at 2 am DST happened, the log DID roll this time, and a new file was generated for the "second run" of the 1am hour. Then everything worked properly, as it always does.
Is this "not rolling" 1 hour before DST is reached done on purpose?
## Configuration
**Version:** log4j-core-2.22.0.jar
**Operating system:** RHEL 8.1
**JDK:** jdk-17.0.9+9-jre
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.