Pre Merge pull request !339 from Zwyzh/master

This commit is contained in:
Zwyzh 2022-02-13 12:59:35 +00:00 committed by Gitee
commit 52cb527904
2 changed files with 3 additions and 6 deletions

View File

@ -36,6 +36,8 @@ logging:
level:
com.ruoyi: debug
org.springframework: warn
# 日志文件目录
dirPath: D:/home/ruoyi/logs
# 用户配置
user:

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<!-- 日志存放路径 -->
<property name="log.path" value="/home/ruoyi/logs" />
<springProperty scope="context" name="log.path" source="logging.dirPath" defaultValue="/home/ruoyi/logs"/>
<!-- 日志输出格式 -->
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
@ -70,11 +70,6 @@
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<!-- 系统模块日志级别控制 -->
<logger name="com.ruoyi" level="info" />
<!-- Spring日志级别控制 -->
<logger name="org.springframework" level="warn" />
<root level="info">
<appender-ref ref="console" />