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

logger filter cant work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.8.2
    • None
    • Core, Documentation
    • None
    • windows 7
      idea 2015
      jdk 8u60 64bit

    Description

      according to the document, logger can set filters, but filters cant work.
      the reason is, when method org.apache.logging.log4j.core.Logger.PrivateConfig#filter(org.apache.logging.log4j.Level, org.apache.logging.log4j.Marker, java.lang.String)
      is call, privateConfig choose filter in a wrong way, it only choose filter from context , ignoring the filter from logger。

      Attachments

        Activity

          People

            Unassigned Unassigned
            zydscut thomas.zheng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: