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

   ## Description
   
   I have a config file for Log4j 2.x in XML format:
   
   ```xml
   <?xml version="1.0" encoding="UTF-8"?>
   <Configuration 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 charset="UTF-8" pattern="test"/>    <!-- error 
here -->
           </Console>
       </Appenders>
   
       <Loggers>
           <Root level="INFO">
               <AppenderRef ref="console"/>
           </Root>
       </Loggers>
   </Configuration>
   ```
   
   The XML validation is telling me:
   > Attribute charset is not allowed here
   
   The documentation for Log4j 2.x is telling me that an attribut `charset` 
exists in `PatternLayout`: 
https://logging.apache.org/log4j/2.x/manual/pattern-layout.html#plugin-attr-charset
   
   Reading the website published at https://logging.apache.org/xml/ns, I get 
the impression that https://logging.apache.org/xml/ns/log4j-config-2.xsd is the 
official "configuration file xml schema".
   
   ## Configuration
   
   **Version:** Log4j 2.x
   


-- 
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: notifications-unsubscr...@logging.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to