调整本地启动时 logs文件夹的位置

This commit is contained in:
三丙
2025-07-01 10:42:35 +08:00
parent 412ae4d6d4
commit 2f6892a443
2 changed files with 14 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
<configuration status="INFO" monitorInterval="30">
<properties>
<Property name="LOG_DIR">/home/sanbing/logs/jcpp</Property>
<Property name="LOG_DIR">${LOG_HOME:-./logs/jcpp}</Property>
<Property name="LOG_PATTERN">%d{yyyy-MM-dd HH:mm:ss:SSS} [%X{TRACE_ID}] [%t] %p %c{1} %m%n%throwable</Property>
</properties>

13
pom.xml
View File

@@ -513,6 +513,19 @@
<include>**/*</include>
</includes>
</fileset>
<!-- 清理所有子模块的logs目录(通配符方式) -->
<fileset>
<directory>${main.dir}</directory>
<includes>
<include>**/logs/**</include>
<include>**/logs/</include>
</includes>
<excludes>
<exclude>target/**</exclude>
<exclude>.git/**</exclude>
</excludes>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
</execution>