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

CompositeConfiguration does not add filters to appenderRefs

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.8
    • Component/s: Configurators
    • Labels:
      None

      Description

      When using composite configuration, if you specify a filter under logger's appenderRef, that filter will not be added. For example:

      <Logger name="cat4" level="debug" additivity="false">
          <AppenderRef ref="File">
              <RegexFilter regex="TEST4"/>
          </AppenderRef>
      </Logger>
      

      This is because the code does not copy grandchildren, only the immediate children of the logger are copied.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              toby200 Toby Shepheard
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: