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

类路径包含grails run app上的多个SLF4J绑定,grails,logback,Grails,Logback,我在grailsrun应用程序上遇到以下错误 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/minh

我在
grailsrun应用程序上遇到以下错误

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插件后,是否有人面临类似的问题?(我使用的是Grails2.4.2)

是日志记录不起作用,还是您只是担心错误消息?只有当所有绑定都是活动的时,这个错误才应该引起关注,但实际上只有插件是活动的,所以通常它“正常工作”。如果您没有看到日志消息,我将深入研究并修复该插件。我们刚刚放弃了在项目中添加slf4j的想法,可能是以后在grails项目中添加slf4j的清晰文档可用时,我会添加它。感谢@BurtBeckwith的评论。