Skip to content

Commit

Permalink
config: Add log configuration items to the config file
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSupeng committed Jun 29, 2021
1 parent e8b9455 commit 964cadb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down

0 comments on commit 964cadb

Please sign in to comment.