[
https://issues.apache.org/jira/browse/LOG4J2-3483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17525278#comment-17525278
]
Ralph Goers commented on LOG4J2-3483:
-------------------------------------
Please see the
[RollingFileAppender|https://svn.apache.org/repos/asf/logging/log4j/trunk/src/main/java/org/apache/log4j/RollingFileAppender.java]
for Log4j 1.x. It does not have a filePattern attribute. This is what Log4j 2
currently supports. You are most likely referring to the
[RollingFileAppender|https://svn.apache.org/repos/asf/logging/log4j/companions/extras/trunk/src/main/java/org/apache/log4j/rolling/RollingFileAppender.java]
in log4j-extras. The RollingFileAppender in Log4j 2 actually borrowed much of
that. However, it isn't really compatible with the RollingFileAppender in the
log4j 1.x distribution so I don't know how we could support both directly.
> log4j-1.2-api bridge RollingFileAppender doesn't provide filePattern support
> ----------------------------------------------------------------------------
>
> Key: LOG4J2-3483
> URL: https://issues.apache.org/jira/browse/LOG4J2-3483
> Project: Log4j 2
> Issue Type: Bug
> Components: Log4j 1.2 bridge
> Affects Versions: 2.17.2
> Reporter: Md Jamaluddin Khan
> Priority: Critical
>
> The Builder for RollingFileAppender doesn't provide support for filePattern.
> In case of a roll-over it uses a hardcoded pattern like 'filename+.<count>'.
> There are cases where a user would like the rolled over file to be named as
> per a desired pattern. In absence of this option it renders the migration
> from log4j1 to log4j2 via bridge almost impossible without breaking changes.
> Add support for filePattern in all the configurations ( XML, properties )
--
This message was sent by Atlassian Jira
(v8.20.7#820007)