mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-05-01 12:25:18 +08:00
实现自动清理服务访问日志
This commit is contained in:
10
pkg/systemconfigs/database_config.go
Normal file
10
pkg/systemconfigs/database_config.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package systemconfigs
|
||||
|
||||
// 数据库相关配置
|
||||
type DatabaseConfig struct {
|
||||
ServerAccessLog struct {
|
||||
Clean struct {
|
||||
Days int `json:"days"` // 日志保留天数,0表示不限制
|
||||
} `json:"clean"` // 清理相关配置
|
||||
} `json:"serverAccessLog"` // 服务访问日志相关配置
|
||||
}
|
||||
Reference in New Issue
Block a user