【发布时间】:2017-06-08 22:06:38
【问题描述】:
如果我在 application.yaml 配置文件中使用以下属性配置 Spring Boot Web 应用程序:
debug: true
我注意到我的日志记录配置被忽略并且所有内容都设置为调试级别。有道理。
debug=true 会影响其他任何东西吗?或者这只是一个日志记录?
【问题讨论】:
标签: java spring logging spring-boot
如果我在 application.yaml 配置文件中使用以下属性配置 Spring Boot Web 应用程序:
debug: true
我注意到我的日志记录配置被忽略并且所有内容都设置为调试级别。有道理。
debug=true 会影响其他任何东西吗?或者这只是一个日志记录?
【问题讨论】:
标签: java spring logging spring-boot
来自https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-logging.html的文档
您还可以在 application.properties 中指定 debug=true。
启用调试模式后,选择的核心记录器(嵌入式 容器、Hibernate 和 Spring Boot)配置为输出更多 信息。
【讨论】: