日志文件配置。注意,如果 logging.file.name 不放在 bootstrap.yaml 配置文件,而是放在 application.yaml 中,会导致出现 LOG_FILE_IS_UNDEFINED 文件

This commit is contained in:
YunaiV
2022-06-18 00:37:54 +08:00
parent 2bd40cfb3b
commit 89848cebf3
8 changed files with 93 additions and 25 deletions

View File

@@ -132,8 +132,6 @@ spring:
# 日志文件配置
logging:
file:
name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径
level:
# 配置自己写的 MyBatis Mapper 打印日志
cn.iocoder.yudao.module.infra.dal.mysql: debug