日志配置

This commit is contained in:
2023-08-01 12:12:08 +08:00
parent f9524cb93e
commit 6d3720881c
3 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
logging:
file:
name: ${spring.application.name}.log
path: /data/log
logback:
rollingpolicy:
clean-history-on-start: true
max-file-size: 20MB
total-size-cap: 1GB
threshold:
file: info
console: info

View File

@@ -0,0 +1,12 @@
logging:
file:
name: ${spring.application.name}.log
path: /data/log
logback:
rollingpolicy:
clean-history-on-start: true
max-file-size: 20MB
total-size-cap: 1GB
threshold:
file: info
console: info

View File

@@ -48,3 +48,5 @@ spring:
type: redis type: redis
redis: redis:
enable-statistics: true enable-statistics: true
application:
name: coal