-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
org/slf4j/impl/StaticLoggerBinder not found #9860
Comments
refer this issue : spring-boot 3.0 dependency |
ในวันที่ อ. 17 ม.ค. 2023 13:13 Bin1993 ***@***.***> เขียนว่า:
… *Describe the bug*
I am using springboot 3.0.1 , nacos 2.2.1 RC, when i startup , the console
print "NacosLogging Load Logback Configuration of Nacos fail, message:
org/slf4j/impl/StaticLoggerBinder", I have inspect nacos code, I found that
StaticLoggerBinder usually offers by Logback or Log4J, but the springboot
3.0.1 default import logback 1.4.5, it doesn‘t offer StaticLoggerBinder. So
I think, nacos should adapter for logback 1.4.5
*Expected behavior*
"NacosLogging Load Logback Configuration of Nacos fail, message:
org/slf4j/impl/StaticLoggerBinder", this warning dong't show again.
*How to Reproduce*
Steps to reproduce the behavior:
use springboot 3.0.1
—
Reply to this email directly, view it on GitHub
<#9860>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZ4VNOA5Y3G4JTGKDQUCBH3WSY2BHANCNFSM6AAAAAAT5OV5EY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
我尝试依靠jvm的类加载机制解决,就像logback提供StaticLoggerBinder的时一样但效果并不理想,项目中多个模块都需要添加com.alibaba.nacos.client.logging.logback.LogbackNacosLogging包与类并重写loadConfigurationOnStart()方法获取LoggerContext对象的片段代码,这让我感到非常的繁琐。 |
正在适配中 |
5 tasks
KomachiSion
pushed a commit
that referenced
this issue
Feb 22, 2023
…oblem between different version (#9934) * logback update * update comment * ident update * comment update * judge version * remove logback-adapter
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I am using springboot 3.0.1 , nacos 2.2.1 RC, when i startup , the console print "NacosLogging Load Logback Configuration of Nacos fail, message: org/slf4j/impl/StaticLoggerBinder", I have inspect nacos code, I found that StaticLoggerBinder usually offers by Logback or Log4J, but the springboot 3.0.1 default import logback 1.4.5, it doesn‘t offer StaticLoggerBinder. So I think, nacos should adapter for logback 1.4.5
Expected behavior
"NacosLogging Load Logback Configuration of Nacos fail, message: org/slf4j/impl/StaticLoggerBinder", this warning dong't show again.
How to Reproduce
Steps to reproduce the behavior:
use springboot 3.0.1
The text was updated successfully, but these errors were encountered: