@zimmi I have tried your workaround but it throws me this exception : Exception in thread "main" java.lang.RuntimeException: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type ch.qos.logback.core.joran.util.beans.BeanDescriptionCache at tool.foo/tools.foo.controller.LogbackConfigurator.configure(LogbackConfigurator.java:35) at tool.foo/tools.foo.MainDev.main(MainDev.java:54) Caused by: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type ch.qos.logback.core.joran.util.beans.BeanDescriptionCache at ch.qos.logback.core/ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:69) at ch.qos.logback.core/ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:40) at tool.foo/tools.foo.controller.LogbackConfigurator.appender(LogbackConfigurator.java:44) at tool.foo/tools.foo.controller.LogbackConfigurator.configure(LogbackConfigurator.java:32) ... 1 more Caused by: java.lang.NoSuchMethodException: ch.qos.logback.core.joran.util.beans.BeanDescriptionCache.<init>(ch.qos.logback.classic.LoggerContext) at java.base/java.lang.Class.getConstructor0(Class.java:3350) at java.base/java.lang.Class.getConstructor(Class.java:2152) at ch.qos.logback.core/ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:63) ... 4 more It seems it cant find the method with LoggerContext as its param, my call is like this: LoggerContext loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory(); LogbackConfigurator loggerConfig = new LogbackConfigurator(); loggerConfig.configure(loggerContext); |