-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
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
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.]
