WeCross icon indicating copy to clipboard operation
WeCross copied to clipboard

Task: 优化日志依赖(LF4J: Class path contains multiple SLF4J bindings.)

Open Wuxiuga opened this issue 4 years ago • 1 comments

在进行接入bcos链时,在对应目录下执行部署代理合约命令时 java -cp 'conf/:lib/*:plugin/*' com.webank.wecross.stub.bcos.normal.proxy.ProxyContractDeployment deploy chains/bcos bcos_user1 # deploy conf下的链配置位置 账户名 返回如下错误:``` SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/Users/demo/routers-payment/127.0.0.1-8250-25500/lib/log4j-slf4j-impl-2.11.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/Users/demo/routers-payment/127.0.0.1-8250-25500/plugin/bcos2-stub-1.0.0-rc4.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/Users/demo/routers-payment/127.0.0.1-8250-25500/plugin/bcos2-stub-gm-1.0.0-rc4.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]

Wuxiuga avatar Nov 04 '20 10:11 Wuxiuga

SLF4J的告警,不影响使用。后续会考虑优化掉 👍

JimmyShi22 avatar Nov 11 '20 03:11 JimmyShi22