From 5711d611f270ef0abaea91a8c4a73a16106467b9 Mon Sep 17 00:00:00 2001 From: huangpeng <1764183241@qq.com> Date: Fri, 26 Sep 2025 12:42:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=93=E5=8C=85=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 6 +++ src/main/resources/logback-spring.xml | 61 +++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 src/main/resources/logback-spring.xml diff --git a/pom.xml b/pom.xml index 891d80f..dbe1d3c 100755 --- a/pom.xml +++ b/pom.xml @@ -150,7 +150,13 @@ + ai-interview + + org.springframework.boot + spring-boot-maven-plugin + 3.5.0 + org.apache.maven.plugins diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml new file mode 100644 index 0000000..0d3872f --- /dev/null +++ b/src/main/resources/logback-spring.xml @@ -0,0 +1,61 @@ + + + + + + + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %highlight(%-5level) %cyan(%logger{36}) - %msg%n + + + + + ${LOG_PATH}/${LOG_FILE_NAME}.log + + ${LOG_PATH}/${LOG_FILE_NAME}.%d{yyyy-MM-dd}.%i.log.gz + 30 + + 100MB + + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n + UTF-8 + + + + + ${LOG_PATH}/error.log + + ${LOG_PATH}/error.%d{yyyy-MM-dd}.log.gz + 30 + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n + UTF-8 + + + ERROR + + + + + 256 + 0 + + + + + + + + + + + + + + + + \ No newline at end of file