From 66ff517da16612fbba056499f3c414932c71c71c Mon Sep 17 00:00:00 2001
From: Junjie <DELL@qq.com>
Date: 星期四, 11 十二月 2025 18:04:15 +0800
Subject: [PATCH] #AI

---
 src/main/resources/logback-spring.xml |    5 ++++-
 src/main/resources/application.yml    |    5 +++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index da30edb..e85c675 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -35,7 +35,8 @@
 
 
 logging:
-  path: ./stock/out/@pom.build.finalName@/logs
+  file:
+    path: ./stock/out/@pom.build.finalName@/logs
 
 super:
   pwd: xltys1995
@@ -69,4 +70,4 @@
 llm:
   base-url: https://api.siliconflow.cn/v1
   api-key: sk-sxdtebtquwrugzrmaqqqkzdzmrgzhzmplwwuowysdasccent
-  model: Qwen/Qwen3-VL-32B-Instruct
\ No newline at end of file
+  model: Qwen/Qwen3-VL-32B-Instruct
diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml
index 6fa80d8..fdc914b 100644
--- a/src/main/resources/logback-spring.xml
+++ b/src/main/resources/logback-spring.xml
@@ -3,6 +3,9 @@
 
     <include resource="org/springframework/boot/logging/logback/defaults.xml"/>
 
+    <springProperty scope="context" name="LOG_FILE_PATH" source="logging.file.path"/>
+    <property name="LOG_PATH" value="${LOG_FILE_PATH:-./stock/out/@pom.build.finalName@/logs}"/>
+
     <property name="CONSOLE_LOG_PATTERN"
               value="%date{yyyy-MM-dd HH:mm:ss}|%highlight(%-5level)|%boldYellow(%thread)|%boldGreen(%logger) %msg%n">
     </property>
@@ -62,4 +65,4 @@
         <appender-ref ref="INFO_FILE"/>
         <appender-ref ref="ERROR_FILE"/>
     </root>
-</configuration>
\ No newline at end of file
+</configuration>

--
Gitblit v1.9.1