apache / apache/logging-log4j2
SizeBasedTriggeringPolicy counter not resetting after TimeBasedTriggeringPolicy rollover
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.7k
- Avg merge
- 21h 30m
- Merged PRs (30d)
- 27
Description
### Discussed in https://github.com/apache/logging-log4j2/discussions/1842
Originally posted by **RollsCorey** October 6, 2023
Hello. Using log4j 2.20.0. My configuration file specifies a SizeBasedTriggeringPolicy and a TimeBasedTriggeringPolicy. My understanding is that when the log rolls due to the TimeBasedTriggeringPolicy, the counter associated with the SizeBasedTriggeringPolicy should reset to 1, but this isn't happening. It just keeps incrementing from where it left off. Here is my config file. Any ideas? Thanks in advance.
```
Y:/logs
%d{MM/dd/yy HH:mm:ss.SSS} %msg%n
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.