Closed lynk-coder closed 5 years ago
I found that once I configured spring-cloud-starter-alibaba-nacos-config, the dynamic level of my log will not take effect. I wonder if this is a BUG, or how do I need to adjust it?
springboot 2.x+springcloud+nacos+logback
LoggerContext loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory(); loggerContext.getLogger("org.mybatis.log.sql").setLevel(Level.valueOf(Config.IS_BEBUG?"debug":"warn"));
Dynamic failure
Resolved, I initialize the dynamic switch log level code after the Config configuration can be.
I found that once I configured spring-cloud-starter-alibaba-nacos-config, the dynamic level of my log will not take effect. I wonder if this is a BUG, or how do I need to adjust it?
springboot 2.x+springcloud+nacos+logback
LoggerContext loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory(); loggerContext.getLogger("org.mybatis.log.sql").setLevel(Level.valueOf(Config.IS_BEBUG?"debug":"warn"));
Dynamic failure