From 32004d6bb7db528c151cca5bd78c4e557171a9ee Mon Sep 17 00:00:00 2001
From: Junjie <DELL@qq.com>
Date: 星期二, 23 十二月 2025 14:09:54 +0800
Subject: [PATCH] #

---
 src/main/resources/logback-spring.xml |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

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