Skip to content

XSD Schema missing LoggerConfig.additivity #3313

@vertx-one

Description

@vertx-one

Description

Documentaion page describe additivity available at Logger: https://logging.apache.org/log4j/2.x/manual/configuration.html#logger-attributes-additivity

https://logging.apache.org/xml/ns/log4j-config-2.xsd provides schema with content

...
<complexType name="org.apache.logging.log4j.core.config.LoggerConfig">
<annotation>
<documentation>Logger object that is created via configuration.</documentation>
</annotation>
<sequence>
<group ref="log4j:org.apache.logging.log4j.core.Filter" minOccurs="0"/>
<element name="AppenderRef" type="log4j:org.apache.logging.log4j.core.config.AppenderRef" minOccurs="0" maxOccurs="unbounded"/>
<element name="Property" type="log4j:org.apache.logging.log4j.core.config.Property" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="includeLocation" type="string"/>
<attribute name="level" type="log4j:org.apache.logging.log4j.Level"/>
<attribute name="levelAndRefs" type="string"/>
<attribute name="name" type="string"/>
</complexType>
...
<complexType name="org.apache.logging.log4j.core.config.LoggerConfig.RootLogger">
<annotation>
<documentation>The root Logger.</documentation>
</annotation>
<sequence>
<group ref="log4j:org.apache.logging.log4j.core.Filter" minOccurs="0"/>
<element name="AppenderRef" type="log4j:org.apache.logging.log4j.core.config.AppenderRef" minOccurs="0" maxOccurs="unbounded"/>
<element name="Property" type="log4j:org.apache.logging.log4j.core.config.Property" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="additivity" type="boolean"/>
<attribute name="includeLocation" type="string"/>
<attribute name="level" type="log4j:org.apache.logging.log4j.Level"/>
<attribute name="levelAndRefs" type="string"/>
</complexType>
...

<attribute name="additivity" type="boolean"/> missed at type org.apache.logging.log4j.core.config.LoggerConfig

As result in IDEA:
image

Configuration

Version: 2.x

Operating system: linux, any

JDK: 17

Logs

[Stacktraces, errors, etc. relevant applications logs.]

Reproduction

[An isolated test reproducing the test.
JUnit tests similar to the ones in the code base are extremely appreciated.]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions