我正在尝试遵循Springboot logback 自定义说明。
我想基本上获得默认行为(这样我就可以添加它)。
该页面说:
A typical custom logback.xml file would look something like this:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/default.xml"/>
<include resource="org/springframework/boot/logging/logback/console-appender.xml" />
<root level="INFO">
<appender-ref ref="CONSOLE" />
</root>
<logger name="org.springframework.web" level="DEBUG"/>
</configuration>
...所以我尝试了,然后我明白了
ch.qos.logback.core.joran.action.IncludeAction 中的警告 - 找不到与 [org/springframework/boot/logging/logback/default.xml] 对应的资源
我的 build.gradle 中有很多:
dependencies {
implementation(
'org.springframework.boot:spring-boot-starter-web',
'org.springframework.boot:spring-boot-starter-logging',
...理论上我认为 starter-web 本身就足够了?
我缺少什么?
holdtom
相关分类