[
https://issues.apache.org/jira/browse/LOG4J2-3483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17525282#comment-17525282
]
Md Jamaluddin Khan commented on LOG4J2-3483:
--------------------------------------------
You are correct that's from log4j-extras. Are you trying to say that the bridge
won't support any configuration supported by log4j-extras ?
I see the source code for bridge api uses a Builder which hardcodes the
filePattern. Same for the RollingFileAppender class.
Can we make it more dynamic and make it accept a filePattern. If absent then do
whatever you are doing already.
> 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)