You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Jeremy Lin (Jira)" <ji...@apache.org> on 2022/04/13 05:17:00 UTC
[jira] [Created] (LOG4J2-3475) RegexFilter does not respect useRawMsg option in some cases
Jeremy Lin created LOG4J2-3475:
----------------------------------
Summary: 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
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)