From dadc25e1414801ec8eda8ee3e5d83ae4029ee37f Mon Sep 17 00:00:00 2001 From: "DESKTOP-DDTUS3E\\yaxin" Date: Tue, 10 Sep 2024 18:00:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E8=BE=93=E5=87=BA=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application.yml | 7 ++- src/main/resources/logback-spring.xml | 64 +++++++++++++++++++++++++++ 2 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/logback-spring.xml diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 87e9adb..867a146 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -30,4 +30,9 @@ fu-hsi-config: triple: core: 2 type: - core: 2 \ No newline at end of file + core: 2 + +logging: + level: + root: info + com.supervision: info \ No newline at end of file diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml new file mode 100644 index 0000000..d5aa2bd --- /dev/null +++ b/src/main/resources/logback-spring.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %highlight(%-5level) %cyan(%logger{36}) - %msg%n + UTF-8 + + + + + + ${LOG_FILE} + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n + UTF-8 + + + ${LOG_PATH}/application.%d{yyyy-MM-dd}.log + 30 + 100MB + + + + + + ${LOG_PATH}/error.log + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n + UTF-8 + + + ${LOG_PATH}/error.%d{yyyy-MM-dd}.log + 30 + 100MB + + + ERROR + + + + + + + + + + + + + + + + + + + +