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

Cannot define both `filters` and `separator` for PatternLayout %xEx

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.10.0
    • Fix Version/s: 2.11.0
    • Component/s: Pattern Converters
    • Labels:
      None

      Description

      Defining a pattern layout that contains:

      %xEx{full,filters(${exceptionFilters}),separator(|)}

      does not work – the filters are applied but the separator is not.

      Only if the filters are removed does the separator apply to the layout.

      Reproduction recipe, including config file and test program here: https://gist.github.com/rocketraman/9a92ce76ee79bf6a15ab9b3a5ec95e08

      Above you can see that the exception separator was not applied – the default newlines are present in the output instead.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                garydgregory Gary Gregory
                Reporter:
                rocketraman Raman Gupta
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: