MethodNotFoundException in ConnectionFactory for log4j2 file - Kotlin

Hi @Varia I went ahead with changing the method name by appending “get” to it in the log4j2 file and also added the @JvmStatic annotation to the static function in the companion object.

This solved the issue. It was quite an informative answer with multiple ways. Thanks for helping me out!