Pre Merge pull request !312 from lixifun/#I42DBV_日志目录配置读取application.yml中配置

This commit is contained in:
lixifun 2021-07-31 09:45:23 +00:00 committed by Gitee
commit f26544b2fe
2 changed files with 4 additions and 3 deletions

View File

@ -33,7 +33,8 @@ logging:
level:
com.ruoyi: debug
org.springframework: warn
file:
path: /home/ruoyi/logs
# 用户配置
user:
password:

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<!-- 日志存放路径 -->
<property name="log.path" value="/home/ruoyi/logs" />
<property name="log.path" value="${LOG_PATH}" />
<!-- 日志输出格式 -->
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
@ -90,4 +90,4 @@
<logger name="sys-user" level="info">
<appender-ref ref="sys-user"/>
</logger>
</configuration>
</configuration>