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

PatternLayout: Possible variable substitution in equals substitution parameter

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.4.1
    • Fix Version/s: 2.6
    • Component/s: Pattern Converters
    • Labels:
      None

      Description

      Let the substitution parameter of the equals function also substitute variables.
      E.g.:

      %equals{%marker}{}{%msg} 
      

      should print the message if the marker is empty, currently "%msg" is appended.

        Attachments

        1. LOG4J2_1169-try2.patch
          10 kB
          Matt Sicker
        2. LOG4J2-1169.patch
          50 kB
          Gerald Kritzinger

          Activity

            People

            • Assignee:
              jvz Matt Sicker
              Reporter:
              gerald.kritzinger@oenb.at Gerald Kritzinger
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: