[
https://issues.apache.org/jira/browse/LOG4J2-3670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17766985#comment-17766985
]
Piotr Karwasz commented on LOG4J2-3670:
---------------------------------------
[~lbreuss] ,
You have an indentation problem: {{DefaultRolloverStrategy}} should be a key of
{{RollingFile}} not {{{}Policies{}}}.
As you noticed with your current configuration a {{DefaultRolloverStrategy}} is
created, discarded since {{Policies}} accepts only triggering policies and a
default strategy is created.
> Rollover max parameter in log4j2.yml is "ignored"
> -------------------------------------------------
>
> Key: LOG4J2-3670
> URL: https://issues.apache.org/jira/browse/LOG4J2-3670
> Project: Log4j 2
> Issue Type: Bug
> Components: Appenders
> Affects Versions: 2.17.2, 2.20.0
> Reporter: Leo Breuss
> Priority: Major
> Labels: Rollover, max
> Attachments: console.log, log4j2-rollover.zip
>
>
> The rolling file appender only keeps 7 files, regardless of what I configure
> the max value to in its DefaultRolloverStrategy.
>
> spring-boot 2.7.15 (snakeyaml 1.33, jackson-databind 2.15.2, Java 17)
> Reproduced with log4j2 version 2.17.2 and 2.20.0
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)