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

CompositeConfiguration does not add filters to appenderRefs

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7
    • 2.8
    • Configurators
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment