[
https://issues.apache.org/jira/browse/LOG4J2-3483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17525447#comment-17525447
]
Piotr Karwasz commented on LOG4J2-3483:
---------------------------------------
[~iamjamal],
The {{RollingFileAppender}} from Log4j 1.x and from extras have different fully
qualified class names: {{org.apache.log4j.RollingFileAppender}} for the former
and {{org.apache.log4j.rolling.RollingFileAppender}} for the latter.
Since the bridge's purpose is to emulate Log4j 1.x as much as possible, the
builder for {{org.apache.log4j.RollingFileAppender}} will not be extended with
a {{filePattern}} property, but you are welcome to submit a builder for
{{org.apache.log4j.rolling.RollingFileAppender}} that will support it.
*Remark*: since the bridge supports custom native Log4j 1.x appenders (i.e.
those that do not have a corresponding {{AppenderBuilder}}), you can use
{{org.apache.log4j.rolling.RollingFileAppender}} with version 2.17.2 if you add
{{apache-log4j-extras}} to your classpath.
> 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: Blocker
>
> 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)