Add logging setting

This commit is contained in:
2023-10-15 16:15:23 +08:00
parent 1a3ae518dc
commit a3f02b1305
2 changed files with 18 additions and 1 deletions

View File

@@ -41,3 +41,13 @@ spring:
# max-idle: 8
# max-active: 8
# max-wait: -1ms
logging:
level:
root: info # Logging level
file:
name: data/log/fat-api.log # Logging path and name
logback:
rollingpolicy:
# max-file-size: 10MB # Maximum log file size
# max-history: 7 # Maximum number of archive log files to keep

View File

@@ -8,6 +8,7 @@ spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
mybatis-plus:
global-config:
db-config:
@@ -16,3 +17,9 @@ mybatis-plus:
logic-delete-value: id
id-type: assign_id
type-aliases-package: top.fatweb.api.entity
logging:
level:
root: info
file:
name: data/log/fat-api.log