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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.10.0
    • 2.11.0
    • Pattern Converters
    • 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

              ggregory Gary D. Gregory
              rocketraman Raman Gupta
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: