Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-3475

RegexFilter does not respect useRawMsg option in some cases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.17.2
    • 2.18.0
    • Filters
    • None

    Description

      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:

      public Result filter(final Logger logger, final Level level, final Marker marker, final String msg,
              final Object... params) {
          return filter(msg);
      }
      

      This code does not parameterize the message when useRawMsg is false.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jjlin Jeremy Lin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: