cxzl25 commented on issue #2770:
URL: 
https://github.com/apache/incubator-kyuubi/issues/2770#issuecomment-1144625803

   > My point is Kyuubi didn't load the log4j2.properties, but log4j2.xml works
   
   log4j2.properties will be used in preference to log4j2.xml
   
   https://logging.apache.org/log4j/2.x/manual/configuration.html
   
   > 6.If a test file cannot be located the properties ConfigurationFactory 
will look for `log4j2.properties` on the classpath.
   > 9.If a JSON file cannot be located the XML ConfigurationFactory will try 
to locate `log4j2.xml` on the classpath.
   
   You can also test like this, in `conf/kyuubi-env.sh`
   ```bash
   export KYUUBI_JAVA_OPTS="-Dlog4j2.debug"
   ```
   Start kyuubi server and see which log configuration file is used.
   
   ```
   DEBUG StatusLogger Reconfiguration complete for context[name=4fca772d] at 
URI XXXX/apache-kyuubi-1.6.0-SNAPSHOT-bin/conf/log4j2.properties 
(org.apache.logging.log4j.core.LoggerContext@31368b99) with optional 
ClassLoader: null
   DEBUG StatusLogger Shutdown hook enabled. Registering a new one.
   ```
   
   
   
   
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to