Log4j 2
  1. Log4j 2
  2. LOG4J2-92

Filter Configuration Error when using KeyValuePair

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-alpha1, 2.0-alpha2, 2.0-beta2
    • Fix Version/s: 2.0-beta2
    • Component/s: Documentation, Filters
    • Labels:
      None
    • Environment:

      Win7

      Description

      When trying to configure DynamicThresholdFilter or StructuredDataFilter via XML according to the documentation on Filters, I get this error message from log4j2 :

      ERROR filter DynamicThresholdFilter has no parameter that matches element KeyValuePair

      <DynamicThresholdFilter key="loginId" defaultThreshold="ERROR" onMatch="ACCEPT" onMismatch="NEUTRAL">
      <KeyValuePair key="User1" value="DEBUG"/>
      </DynamicThresholdFilter>

      The problem seems to be present at other filters as well, where KeyValuePair is used.

        Activity

          People

          • Assignee:
            Ralph Goers
            Reporter:
            Szabolcs Beki
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development