<div><div>Hi,</div></div><div><br></div><div>I need some help to integrate logback into my app.</div><div>I use gradle to automate the building and this error occurs when running "gradlew runMod" task:</div><div>

<br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">[configuration ':archives', configuration ':compile', configuration ':default', configuration ':groovy', configuration ':provided', configuration ':runtime', configuration ':signatures', configuration ':testCompile',configuration ':testRuntime']<br>

:cleanModsDir<br>:clean<br>BUILD SUCCESSFUL</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>

Total time: 5.028 secs<br>Download <a href="https://oss.sonatype.org/content/repositories/snapshots/io/vertx/vertx-core/2.0.0-SNAPSHOT/vertx-core-2.0.0-20130311.090856-218.jar">https://oss.sonatype.org/content/repositories/snapshots/io/vertx/vertx-core/2.0.0-SNAPSHOT/vertx-core-2.0.0-20130311.090856-218.jar</a><br>

Download <a href="https://oss.sonatype.org/content/repositories/snapshots/io/vertx/vertx-platform/2.0.0-SNAPSHOT/vertx-platform-2.0.0-20130311.090922-217.jar">https://oss.sonatype.org/content/repositories/snapshots/io/vertx/vertx-platform/2.0.0-SNAPSHOT/vertx-platform-2.0.0-20130311.090922-217.jar</a><br>

[configuration ':archives', configuration ':compile', configuration ':default', configuration ':groovy', configuration ':provided', configuration ':runtime', configuration ':signatures', configuration ':testCompile', configuration ':testRuntime']<br>

Relying on packaging to define the extension of the main artifact has been deprecated and is scheduled to be removed in Gradle 2.0<br>Download <a href="https://oss.sonatype.org/content/repositories/snapshots/io/vertx/lang-groovy/1.0.0-SNAPSHOT/lang-groovy-1.0.0-SNAPSHOT.zip">https://oss.sonatype.org/content/repositories/snapshots/io/vertx/lang-groovy/1.0.0-SNAPSHOT/lang-groovy-1.0.0-SNAPSHOT.zip</a><br>

:compileJava UP-TO-DATE<br>:compileGroovy<br>:processResources<br>:classes<br>:copyMod<br>:runMod</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

println: before test.start<br>SLF4J: Class path contains multiple SLF4J bindings.<br><b>SLF4J: Found binding in [jar:file:/c:/Users/mihai/Desktop/test/mods/mod-owner~mod-name~1.0.0-SNAPSHOT/lib/logback-classic-1.0.9.jar!/org/slf4j/impl/StaticLoggerBinder.class]<br>

SLF4J: Found binding in [jar:file:/C:/Users/mihai/.gradle/wrapper/dists/gradle-1.4-bin/47n6g3pbi5plc7n8fn58nkinje/gradle1.4/lib/logback-classic-1.0.9.jar!/org/slf4j/impl/StaticLoggerBinder.class]</b><br>SLF4J: See <a href="http://www.slf4j.org/codes.html#multiple_bindings">http://www.slf4j.org/codes.html#multiple_bindings</a> for an explanation.<br>

Failed to instantiate [ch.qos.logback.classic.LoggerContext]<br>Reported exception:<br>org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:<br>Script1.groovy: 1: unable to resolve class ch.qos.logback.classic.Level<br>

 @ line 1, column 1.<br>   import ch.qos.logback.classic.Level<br>   ^<br>Script1.groovy: 5: unable to resolve class ch.qos.logback.core.rolling.TimeBasedRollingPolicy<br> @ line 5, column 1.<br>   import ch.qos.logback.core.rolling.TimeBasedRollingPolicy<br>

   ^</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>Script1.groovy: 4: unable to resolve class ch.qos.logback.core.rolling.RollingFileAppender<br>

 @ line 4, column 1.<br>   import ch.qos.logback.core.rolling.RollingFileAppender<br>   ^<br>Script1.groovy: 3: unable to resolve class ch.qos.logback.core.ConsoleAppender<br> @ line 3, column 1.<br>   import ch.qos.logback.core.ConsoleAppender<br>

   ^<br>Script1.groovy: 6: unable to resolve class ch.qos.logback.core.status.OnConsoleStatusListener<br> @ line 6, column 1.<br>   import ch.qos.logback.core.status.OnConsoleStatusListener<br>   ^</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<br>Script1.groovy: 2: unable to resolve class ch.qos.logback.classic.encoder.PatternLayoutEncoder<br> @ line 2, column 1.<br>   import ch.qos.logback.classic.encoder.PatternLayoutEncoder<br>   ^<br>Script1.groovy: 8: unable to resolve class ch.qos.logback.classic.Level<br>

 @ line 8, column 1.<br>   import static <a href="http://ch.qos.logback.classic.Level.INFO">ch.qos.logback.classic.Level.INFO</a><br>   ^<br>Script1.groovy: 9: unable to resolve class ch.qos.logback.classic.Level<br> @ line 9, column 1.<br>

   import static ch.qos.logback.classic.Level.WARN<br>   ^<br>8 errors</blockquote><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

        at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:309)<br>        at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:927)<br>        at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:575)<br>

        at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:524)<br>        at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:279)<br>        at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:258)<br>

        at groovy.lang.GroovyShell.parseClass(GroovyShell.java:613)<br>        at groovy.lang.GroovyShell.parse(GroovyShell.java:625)<br>        at groovy.lang.GroovyShell.parse(GroovyShell.java:652)<br>        at groovy.lang.GroovyShell.parse(GroovyShell.java:643)<br>

        at groovy.lang.GroovyShell$parse.call(Unknown Source)<br>        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)<br>        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)<br>

        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)<br>        at ch.qos.logback.classic.gaffer.GafferConfigurator.run(GafferConfigurator.groovy:48)<br>        at ch.qos.logback.classic.gaffer.GafferConfigurator$run.callCurrent(Unknown Source)<br>

        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)<br>        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)<br>        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)<br>

        at ch.qos.logback.classic.gaffer.GafferConfigurator.run(GafferConfigurator.groovy:37)<br>        at ch.qos.logback.classic.gaffer.GafferUtil.runGafferConfiguratorOn(GafferUtil.java:43)<br>        at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:65)<br>

        at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:148)<br>        at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)<br>        at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)<br>

        at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128)<br>        at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107)<br>        at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295)<br>

        at test.Test.start(Test.groovy:20)<br>        at org.vertx.groovy.platform.Verticle.start(Verticle.groovy:35)<br>        at org.vertx.groovy.platform.Verticle$start.call(Unknown Source)<br>        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)<br>

        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)<br>        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)<br>        at org.vertx.groovy.platform.impl.GroovyVerticle.start(GroovyVerticle.groovy:59)<br>

        at org.vertx.java.platform.impl.DefaultPlatformManager$11.run(DefaultPlatformManager.java:1171)<br>        at org.vertx.java.core.impl.Context$1.run(Context.java:127)<br>        at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:366)<br>

        at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:290)<br>        at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:88)<br>        at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)<br>

        at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)<br>        at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)<br>        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)<br>

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)<br>        at java.lang.Thread.run(Thread.java:722)</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]<br>11:27:25,808 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.groovy] at [file:/c:/Users/mihai/Desktop/test/mods/mod-owner~mod-name~1.0.0-SNAPSHOT/logback.groovy]</blockquote>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>println: after test.start<br>CTRL-C to stop server<br>

> Building > :runMod</blockquote></div><div><br></div><div>The sample app can be found in the attachment. Just unpack and run "gradlew runMod".</div><div><br></div><div>Thanks,</div><div>Mihai</div><div><br>

</div>