Inverted rollover strategy in log4j-1.2-api
#1650
Labels
bug
Incorrect, unexpected, or unintended behavior of existing code
good first issue
Issues that are good for contributors looking to get started
Milestone
Description
The default rollover strategy in Log4j 1.x archived the current log file
File
always toFile.1
:This corresponds to the
fileIndex="min"
rollover strategy of the version 2.xRollingFileAppender
(cf. documentation).However the
RollingFileAppenderBuilder
fromlog4j-1.2-api
creates afileIndex="max"
rollover strategy (the default strategy in Log4j 2.x).This problem was reported in the SO question Log4j 1.2 Bridge update to 2.17.2 RollingFileAppender MaxBackupIndex Problem.
Affected version
Versions
2.20.0
and3.0.0-alpha1
are both affected.The text was updated successfully, but these errors were encountered: