fcorneli opened a new issue, #4475:
URL: https://github.com/apache/logging-log4j2/issues/4475

   When validating the `log4j2.xml` against the XML schema at:
   https://logging.apache.org/xml/ns/log4j-config-2.xsd
   the `additivity` attribute is located only on the `Root`, not on the 
`Logger`.
   Hence XML schema validation fails on for example:
   ```xml
   <?xml version="1.0" encoding="UTF-8"?>
   <Configuration status="WARN"
                  xmlns="https://logging.apache.org/xml/ns";
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
                  xsi:schemaLocation="https://logging.apache.org/xml/ns 
https://logging.apache.org/xml/ns/log4j-config-2.xsd";>
       <Appenders>
           <Console name="Console" target="SYSTEM_OUT">
               <PatternLayout pattern="%highlight{%-5level} [%logger{1}] 
%msg%n"/>
           </Console>
       </Appenders>
       <Loggers>
           <Logger name="my.package.here" level="DEBUG" additivity="false">
               <AppenderRef ref="Console"/>
           </Logger>
           <Logger name="another.package.here" level="DEBUG" additivity="false">
               <AppenderRef ref="Console"/>
           </Logger>
           <Root level="WARN">
               <AppenderRef ref="Console"/>
           </Root>
       </Loggers>
   </Configuration>
   ```
   Could this get fixed?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

  • [I] additivity attribute [lo... fcorneli (via GitHub) via notifications

Reply via email to