优化logback日志

This commit is contained in:
paulGao
2021-09-30 14:48:53 +08:00
parent cdeebc7afb
commit 0440ecea23
12 changed files with 103 additions and 74 deletions

View File

@@ -182,6 +182,7 @@ mybatis-plus:
# 日志
logging:
config: classpath:logback-spring.xml
# 输出级别
level:
cn.lili: info
@@ -190,11 +191,13 @@ logging:
# org.springframework.data.mongodb.core: debug
file:
# 指定路径
path: lili-logs
# 最大保存天数
max-history: 7
# 每个文件最大大小
max-size: 5MB
path: logs
logback:
rollingpolicy:
# 最大保存天数
max-history: 7
# 每个文件最大大小
max-file-size: 5MB
#加密参数
jasypt:
encryptor: