From b60ecf40efa981d8731497d6eeb9b8b3005ecf1d Mon Sep 17 00:00:00 2001
From: liyj <15602261488@163.com>
Date: Thu, 10 Oct 2024 10:22:19 +0800
Subject: [PATCH] 1、自行排查的来访方式显示错误修复

---
 dyh-service/dyh-utils/src/main/resources/logback-spring.xml |   20 ++++++++------------
 1 files changed, 8 insertions(+), 12 deletions(-)

diff --git a/dyh-service/dyh-utils/src/main/resources/logback-spring.xml b/dyh-service/dyh-utils/src/main/resources/logback-spring.xml
index 7965148..760a78c 100644
--- a/dyh-service/dyh-utils/src/main/resources/logback-spring.xml
+++ b/dyh-service/dyh-utils/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