apache / logging-log4j2

Apache Log4j 2 is a versatile, feature-rich, efficient logging API and backend for Java.
https://logging.apache.org/log4j/2.x/
Apache License 2.0
3.35k stars 1.59k forks source link

Example xinclude-loggers.xml is not quite right (minor mistype, fails validation re xsd) #2997

Open antboy opened 1 hour ago

antboy commented 1 hour ago

The example src/site/antora/modules/ROOT/examples/manual/configuration/xinclude-loggers.xml a) contains a spelling mistype (Rogger -> Logger)

b) the example would fail validation with the standard xsd schema (which is absent in the example) due to "Attribute 'additivity' is not allowed to appear in element 'Logger'. Although using it does actually work, so perhaps it's an xsd problem really?

The above problem, if the xml contains the xsd reference: <Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://logging.apache.org/xml/ns" xsi:schemaLocation="https://logging.apache.org/xml/ns https://logging.apache.org/xml/ns/log4j-config-2.xsd">

antboy commented 1 hour ago

Hash: https://github.com/apache/logging-log4j2/commit/e84a46ceb7fb5740f16a012da47b04cc87b1f0b7