Skip to content

Configuration type doesn't have MarkerFilter element #152

Description

@IMurzich

Description

log4j.xml from https://github.com/apache/logging-log4j2/blob/2.x/src/site/antora/modules/ROOT/examples/manual/markers/log4j2.xml doesn't validate:

Multiple annotations found at this line:
- Element name 'MarkerFilter' is invalid.
One of the following is expected:

  • CustomLevels
  • Loggers

Error indicated by:
{https://logging.apache.org/xml/ns}
with code:
- cvc-complex-type.2.4.a: Invalid content was found starting with element
'{"https://logging.apache.org/xml/ns":MarkerFilter}'. One of '{"https://
logging.apache.org/xml/ns":CustomLevels, "https://logging.apache.org/xml/
ns":Loggers}' is expected.

Configuration

Version: Used xsd - https://logging.apache.org/xml/ns/log4j-config-2.xsd

Reproduction

validate https://github.com/apache/logging-log4j2/blob/2.x/src/site/antora/modules/ROOT/examples/manual/markers/log4j2.xml

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions