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

Package filter not working with %ex conversion pattern

    XMLWordPrintableJSON

Details

    • Documentation
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.11.1
    • None
    • Pattern Converters
    • None

    Description

      When using this log pattern in a RollingFile appender, the packages are not filtered out:

      %5p %d [%t] (%F:%L) %c - %m%ex{filters(org.apache.tomcat.util,org.apache.catalina,org.apache.coyote)}%n

      If instead I use:

      %5p %d [%t] (%F:%L) %c - %m%xEx{filters(org.apache.tomcat.util,org.apache.catalina,org.apache.coyote)}%n

      then they are filtered out.

      According to the documentation both should work.

      Attachments

        Activity

          People

            pkarwasz Piotr Karwasz
            sacharette Simon Charette
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: