You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Julian Sedding (JIRA)" <ji...@apache.org> on 2018/05/10 09:01:00 UTC
[jira] [Resolved] (SLING-7660) LogManager configuration "Number of
Log Files" limited to 20
[ https://issues.apache.org/jira/browse/SLING-7660?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Sedding resolved SLING-7660.
-----------------------------------
Resolution: Fixed
Fix Version/s: Commons Log 5.1.8
Fixed in [commit ca02b9f|https://gitbox.apache.org/repos/asf?p=sling-org-apache-sling-commons-log.git;a=commitdiff;h=ca02b9f].
> LogManager configuration "Number of Log Files" limited to 20
> ------------------------------------------------------------
>
> Key: SLING-7660
> URL: https://issues.apache.org/jira/browse/SLING-7660
> Project: Sling
> Issue Type: Improvement
> Components: Commons
> Affects Versions: Commons Log 5.1.6
> Reporter: Julian Sedding
> Assignee: Julian Sedding
> Priority: Minor
> Fix For: Commons Log 5.1.8
>
>
> The "Number of Log Files" configuration property for size-based log rotation is capped at 20 (or 21 including the current log file. This limitation comes from [logback's {{FixedWindowRollingPolicy}}|https://github.com/qos-ch/logback/blob/39c7ab9510c4f48ef3fcbef248aac380d3b58235/logback-core/src/main/java/ch/qos/logback/core/rolling/FixedWindowRollingPolicy.java#L47], but can be overridden in a subclass. I propose to override the {{FixedWindowRollingPolicy#getMaxWindowSize}} to return {{Integer.MAX_VALUE}}.
> cc [~chetanm]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)