22 lines
785 B
XML
22 lines
785 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<configuration>
|
|
<include resource="org/springframework/boot/logging/logback/base.xml" />
|
|
<logger name="org.springframework.web" level="INFO"/>
|
|
<logger name="org.springboot.sample" level="TRACE" />
|
|
|
|
<!-- 开发、测试环境 -->
|
|
<springProfile name="dev,test">
|
|
<logger name="org.springframework.web" level="INFO"/>
|
|
<logger name="org.springboot.sample" level="INFO" />
|
|
<logger name="com.dkha" level="DEBUG" />
|
|
</springProfile>
|
|
|
|
<!-- 生产环境 -->
|
|
<springProfile name="prod">
|
|
<logger name="org.springframework.web" level="ERROR"/>
|
|
<logger name="org.springboot.sample" level="ERROR" />
|
|
<logger name="com.dkha" level="ERROR" />
|
|
</springProfile>
|
|
|
|
</configuration>
|