mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 15:55:18 +08:00
日志配置
This commit is contained in:
12
src/main/resources/application-prod.yaml
Normal file
12
src/main/resources/application-prod.yaml
Normal 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
|
||||||
12
src/main/resources/application-test.yaml
Normal file
12
src/main/resources/application-test.yaml
Normal 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
|
||||||
@@ -48,3 +48,5 @@ spring:
|
|||||||
type: redis
|
type: redis
|
||||||
redis:
|
redis:
|
||||||
enable-statistics: true
|
enable-statistics: true
|
||||||
|
application:
|
||||||
|
name: coal
|
||||||
|
|||||||
Reference in New Issue
Block a user