first commit
This commit is contained in:
26
src/main/resources/logback-spring.xml
Normal file
26
src/main/resources/logback-spring.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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.peanut" level="DEBUG" />
|
||||
</springProfile>
|
||||
|
||||
<!-- 生产环境 -->
|
||||
<!-- <springProfile name="prod">-->
|
||||
<!-- <logger name="org.springframework.web" level="ERROR"/>-->
|
||||
<!-- <logger name="org.springboot.sample" level="ERROR" />-->
|
||||
<!-- <logger name="com.peanut" level="ERROR" />-->
|
||||
<!-- </springProfile>-->
|
||||
<springProfile name="prod">
|
||||
<logger name="org.springframework.web" level="INFO"/>
|
||||
<logger name="org.springboot.sample" level="INFO" />
|
||||
<logger name="com.peanut" level="DEBUG" />
|
||||
</springProfile>
|
||||
|
||||
</configuration>
|
||||
Reference in New Issue
Block a user