Skip to content

XSD Schema missing LoggerConfig.additivity #3313

Closed

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.]

Activity

  1. ppkarwasz commented on Dec 20, 2024

    @ppkarwasz
    Member

    @vertx-one,

    Thanks for the report. I am closing it as duplicate of apache/logging-log4j-tools#135.

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

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