添加日志文件定义,日志级别调整。
This commit is contained in:
1 parent
aae952ec13
commit
6e529c7ef7
2 files changed
+14
-2
No files matched your search
@@ -36,6 +36,17 @@ logging:
|
||||
level:
|
||||
com.ruoyi: debug
|
||||
org.springframework: warn
|
||||
# MyBatis 的 SQL 日志以「mapper 接口全名.方法名」为 logger、按 DEBUG 输出,会继承 com.ruoyi 的 debug。
|
||||
# 这里把各 mapper 包压回 info,控制台不再打印 SQL;需要看某个模块的 SQL 时把对应行改成 debug。
|
||||
com.ruoyi.system.mapper: info
|
||||
com.ruoyi.quartz.mapper: info
|
||||
com.ruoyi.generator.mapper: info
|
||||
com.ruoyi.iot.lock.mapper: info
|
||||
com.ruoyi.iot.person.mapper: info
|
||||
file:
|
||||
# 日志输出目录(logback-spring.xml 通过 springProperty 读取;Linux 示例 /home/ruoyi/logs)
|
||||
# 也可用环境变量 LOGGING_FILE_PATH 覆盖,无需改配置文件
|
||||
path: C:/Users/zfjia/work/projects/ruoyi/logs
|
||||
|
||||
# 用户配置
|
||||
user:
|
||||
|
||||
+3
-2
@@ -1,7 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<!-- 日志存放路径 -->
|
||||
<property name="log.path" value="C:/Users/zfjia/work/projects/ruoyi/logs" />
|
||||
<!-- 日志存放路径:取 application.yml 的 logging.file.path,未配置时回退到 Linux 默认目录。
|
||||
也支持环境变量 LOGGING_FILE_PATH 或 -Dlogging.file.path= 覆盖,换环境无需改本文件 -->
|
||||
<springProperty scope="context" name="log.path" source="logging.file.path" defaultValue="/home/ruoyi/logs" />
|
||||
<!-- 日志输出格式 -->
|
||||
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
|
||||
|
||||
Reference in new issue
Block a user