调整本地启动时 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"> <configuration status="INFO" monitorInterval="30">
<properties> <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> <Property name="LOG_PATTERN">%d{yyyy-MM-dd HH:mm:ss:SSS} [%X{TRACE_ID}] [%t] %p %c{1} %m%n%throwable</Property>
</properties> </properties>

13
pom.xml
View File

@@ -513,6 +513,19 @@
<include>**/*</include> <include>**/*</include>
</includes> </includes>
</fileset> </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> </filesets>
</configuration> </configuration>
</execution> </execution>