From ac5aafcada29ba1444bac039c64fb9b030d1a9d4 Mon Sep 17 00:00:00 2001 From: ALEX <2604434353@qq.com> Date: Thu, 7 Aug 2025 15:03:46 +0800 Subject: [PATCH] fix: modify the log4j2.xml --- src/main/resources/application.yaml | 14 +------------- src/main/resources/log4j2.xml | 13 ++++--------- 2 files changed, 5 insertions(+), 22 deletions(-) diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 1de8cc3..744dab7 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -15,16 +15,4 @@ mqtt: password: password123 clientId: eld-mqtt topic: mqtt-anyfleet-to-eldapp - qos: 0 -logging: - level: - root: INFO # 应用程序的默认日志级别为 INFO - com.ctgu: DEBUG # com.ctgu 包下的类的日志级别设置为 DEBUG - org.apache.ibatis: INFO # MyBatis 日志级别设置为 INFO - com.zaxxer.hikari: INFO # HikariCP 的日志级别设置为 INFO - org.springframework.web.socket: DEBUG - org.springframework.web.socket.server.support: DEBUG - org: - springframework: - integration: DEBUG - messaging: DEBUG \ No newline at end of file + qos: 0 \ No newline at end of file diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml index cfdbc66..62c01ec 100644 --- a/src/main/resources/log4j2.xml +++ b/src/main/resources/log4j2.xml @@ -7,12 +7,15 @@ %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %highlight{%-5level} %logger{36} - %msg%n - + @@ -58,14 +61,6 @@ - - - - - - - -