rturner-edjuster opened a new issue, #144:
URL: https://github.com/apache/logging-log4j-kotlin/issues/144

   Maven POM dependency extract:
   ```xml
           <dependency>
               <groupId>org.apache.logging.log4j</groupId>
               <artifactId>log4j-api-kotlin</artifactId>
               <version>1.5.0</version>
           </dependency>
           <dependency>
               <groupId>org.apache.logging.log4j</groupId>
               <artifactId>log4j-core</artifactId>
               <version>2.23.0</version><!-- Updating beyond 2.23.0 breaks the 
Kotlin API it seems -->
           </dependency>
   ```
   
   If you update the log4j-core to 2.24.x, you get class not found errors 
trying to initialize the logger:
   ```
   Caused by: java.lang.ExceptionInInitializerError: Exception 
java.lang.NoClassDefFoundError: Could not initialize class 
org.apache.logging.log4j.core.LoggerContext [in thread "main"]
           at 
org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.createContext(ClassLoaderContextSelector.java:265)
           at 
org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.locateContext(ClassLoaderContextSelector.java:224)
           at 
org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:146)
           at 
org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:125)
           at 
org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:241)
           at 
org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:46)
           at 
org.apache.logging.log4j.LogManager.getContext(LogManager.java:177)
           at 
org.apache.logging.log4j.kotlin.LoggingFactoryKt.logger(LoggingFactory.kt:46)
   ```


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

Reply via email to