CrazyHZM commented on issue #11391: URL: https://github.com/apache/dubbo/issues/11391#issuecomment-1411409708
@egalee 主要原因是依赖中既传递了log4j的依赖,也有slf4j的依赖,而https://github.com/apache/dubbo/pull/11000 合并之前一直都写死了用slf4j,这个导致dubbo内的dubbo.application.logger配置对不规范的日志输出并不起效果。这也是https://github.com/apache/dubbo/pull/11000修复的原因。 至于为什么用低版本可以,是之前强制slf4j,所以不影响,现在改为标准输出后,在没有配置dubbo.application.logger的情况下,如果依赖中依赖了log4j,优先会按照log4j输出,然而如果没有配置log4j,则出现没有日志输出的情况。 所以有2个办法,一个是升级3.2,3.2将完成这块的适配。一个是配置一下dubbo.application.logger=slf4j。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
