Browse Source

修改日志级别

master
liuchen864 8 months ago
parent
commit
9a955ffe48
  1. 8
      win-admin/src/main/resources/logback-spring.xml

8
win-admin/src/main/resources/logback-spring.xml

@ -110,9 +110,10 @@
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>ERROR,FATAL</level>
<level>ERROR</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:接收(记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
@ -127,6 +128,7 @@
<appender-ref ref="file_error"/>
</root>
</springProfile>
<!-- test环境 -->
<springProfile name="test">
<root level="INFO">
<appender-ref ref="console"/>
@ -135,6 +137,7 @@
<appender-ref ref="file_error"/>
</root>
</springProfile>
<!-- prod环境 -->
<springProfile name="prod">
<root level="INFO">
<appender-ref ref="file_info"/>
@ -142,7 +145,7 @@
<appender-ref ref="file_error"/>
</root>
</springProfile>
<!-- 指定第三方日志级别 -->
<logger name="org.springframework" level="WARN" />
<logger name="org.apache" level="INFO" />
<logger name="com.baomidou" level="INFO" />
@ -156,6 +159,5 @@
<logger name="reactor.netty" level="WARN" />
<logger name="de.codecentric.boot" level="WARN" />
<logger name="com.alibaba" level="WARN" />
<logger name="org.quartz" level="WARN" />
</configuration>
Loading…
Cancel
Save