From 964cadb94a0f9fc2daf6e30a3848fe98694ba59e Mon Sep 17 00:00:00 2001 From: super Date: Tue, 29 Jun 2021 12:41:06 +0800 Subject: [PATCH] config: Add log configuration items to the config file --- pkg/config/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index c43e53b3096..6519183a5f9 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -146,13 +146,14 @@ func GetDefaultReplicaConfig() *ReplicaConfig { // SecurityConfig represents security config for server type SecurityConfig = security.Credential -// LogConfig represents log config for server +// LogFileConfig represents log file config for server type LogFileConfig struct { MaxSize int `toml:"max-size" json:"max-size"` MaxDays int `toml:"max-days" json:"max-days"` MaxBackups int `toml:"max-backups" json:"max-backups"` } +// LogConfig represents log config for server type LogConfig struct { File *LogFileConfig `toml:"file" json:"file"` }