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

logger filter cant work

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8.2
    • Fix Version/s: None
    • Component/s: Core, Documentation
    • Labels:
      None
    • Environment:

      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

            • Assignee:
              Unassigned
              Reporter:
              zydscut thomas.zheng
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: