类路径在grails run-app上包含多个SLF4J绑定

时间:2014-10-20 14:29:41

标签: grails logback

我在grails run-app

上收到以下错误
Oct 20, 2014 6:22:22 PM org.codehaus.groovy.runtime.m12n.MetaInfExtensionModule newModule
| Configuring classpath
| Error SLF4J: Class path contains multiple SLF4J bindings.
| Error SLF4J: Found binding in [jar:file:/Users/minhaj/.m2/repository/ch/qos/logback/logback-    classic/1.0.12/logback-classic-1.0.12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
| Error SLF4J: Found binding in [jar:file:/Users/minhaj/.m2/repository/org/grails/grails-plugin-    log4j/2.4.2/grails-plugin-log4j-2.4.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
| Error SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
| Error SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]

但我明确地排除了grails-plugin-log4j,但看起来它不起作用。

inherits("global") {
    excludes 'grails-plugin-log4j', 'log4j'
}

在grails应用程序中添加logback插件后是否有人遇到类似的问题? (我使用的是Grails 2.4.2)

0 个答案:

没有答案