[ 
https://issues.apache.org/jira/browse/LOG4J2-3475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17521726#comment-17521726
 ] 

ASF subversion and git services commented on LOG4J2-3475:
---------------------------------------------------------

Commit 5be42b2cfeb5c1dde1ee5b4e7a0fb476083ad568 in logging-log4j2's branch 
refs/heads/release-2.x from Jeremy Lin
[ https://gitbox.apache.org/repos/asf?p=logging-log4j2.git;h=5be42b2cfe ]

[LOG4J2-3475] Add missing message parameterization in RegexFilter


> RegexFilter does not respect useRawMsg option in some cases
> -----------------------------------------------------------
>
>                 Key: LOG4J2-3475
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3475
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Filters
>    Affects Versions: 2.17.2
>            Reporter: Jeremy Lin
>            Priority: Major
>
> [https://github.com/apache/logging-log4j2/blob/rel/2.17.2/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/RegexFilter.java#L58-L61:]
> {code:java}
> public Result filter(final Logger logger, final Level level, final Marker 
> marker, final String msg,
>         final Object... params) {
>     return filter(msg);
> }
> {code}
> This code does not parameterize the message when {{useRawMsg}} is true.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to