apache / logging-log4j-tools

Tools internally used by the Apache Log4j project
https://logging.apache.org/log4j/tools
Apache License 2.0
14 stars 18 forks source link

Configuration type doesn't have MarkerFilter element #152

Open IMurzich opened 1 month ago

IMurzich commented 1 month ago

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:

Error indicated by: {https://logging.apache.org/xml/ns} with code:

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

ppkarwasz commented 1 month ago

@IMurzich,

Thank You for the report. I moved it to logging-log4j-tools, since the problem is caused by our log4j-docgen generator. The meta-definition of the <Component> element does not contain filters:

https://github.com/apache/logging-log4j-tools/blob/d795a97683ce3042005a8d512ae7494bdb669f26/log4j-docgen/src/main/resources/org/apache/logging/log4j/docgen/generator/base-log4j-types.xml#L118-L136