From d0ffecb36c393e1d4505aaf01f19051955d42c84 Mon Sep 17 00:00:00 2001
From: xusd <hugeinfo123>
Date: Fri, 13 Sep 2024 20:04:51 +0800
Subject: [PATCH] 修复bug
---
dyh-service/dyh-cust/src/main/resources/logback-spring.xml | 20 ++++++++------------
1 files changed, 8 insertions(+), 12 deletions(-)
diff --git a/dyh-service/dyh-cust/src/main/resources/logback-spring.xml b/dyh-service/dyh-cust/src/main/resources/logback-spring.xml
index f2f3177..0d42267 100644
--- a/dyh-service/dyh-cust/src/main/resources/logback-spring.xml
+++ b/dyh-service/dyh-cust/src/main/resources/logback-spring.xml
@@ -22,21 +22,17 @@
</encoder>
</appender>
- <!-- 为 MyBatis 设置 DEBUG 级别的日志 -->
- <logger name="org.apache.ibatis" level="DEBUG"/>
- <!-- 输出 SQL 语句和参数 -->
- <logger name="org.apache.ibatis.binding" level="DEBUG"/>
- <!-- 输出 SQL 语句执行情况 -->
- <logger name="org.apache.ibatis.session" level="DEBUG"/>
- <!-- 输出 SQL 语句执行结果 -->
- <logger name="org.apache.ibatis.executor" level="DEBUG"/>
- <!-- 输出 SQL 语句 -->
- <logger name="org.apache.ibatis.scripting" level="DEBUG"/>
-
<!-- 设置根日志级别,如果日志级别低于设置的级别,则该日志不会被记录。如果日志级别高于设置的级别,那么这条日志将会被记录 -->
- <root level="DEBUG">
+ <root level="INFO">
<appender-ref ref="CONSOLE" />
</root>
+
+ <logger name="cn.huge" level="DEBUG" additivity="true"/>
+ <logger name="org.hibernate.SQL" level="DEBUG" additivity="true"/>
+ <!-- 为 MyBatis 设置 DEBUG 级别的日志 -->
+ <logger name="com.baomidou.mybatisplus" level="INFO" additivity="false">
+ <appender-ref ref="CONSOLE" />
+ </logger>
</springProfile>
<!-- 测试环境+生产环境,多个使用逗号隔开 -->
--
Gitblit v1.8.0