Spring Boot应用程序使用1.1.9.RELEASE
尝试在最简单的情况下设置日志记录
logging:
level:
org.springframework.web: DEBUG场景1:将上述行添加到/resources - WORKS中的application.yml
场景2:当将这些行添加到配置服务器使用的github代码库时,应用程序似乎并未使用它。为了确保调用/env端点会产生以下输出
configService:https://github.com/myrepo/config/file:/mypath/transportation.yml: {
logging.level.org.springframework.integration: "DEBUG",
logging.level.org.springframework.web: "TRACE",
logging.level.org.springframework.ws: "TRACE",
...
} 因此,Environment似乎可以正确加载。另外,如果我将logging.level行添加到bootstrap.yml中,它将一直工作到从配置服务器加载新环境(我可以看到调试级别输出)。
我是不是遗漏了什么,或者关于日志记录级别和configserver有某种限制?
发布于 2015-01-29 18:31:45
这对我很有效。您是否记得刷新应用程序(例如POST到/refresh)以传播更改?
https://stackoverflow.com/questions/28198647
复制相似问题