master
anqiansong 2 years ago committed by Kevin Wan
parent a05fe7bf0a
commit 4620924105

@ -23,7 +23,7 @@ type LogConf struct {
MaxContentLength uint32 `json:",optional"` MaxContentLength uint32 `json:",optional"`
// Compress represents whether to compress the log file, default is `false`. // Compress represents whether to compress the log file, default is `false`.
Compress bool `json:",optional"` Compress bool `json:",optional"`
// Stdout represents whether to log statistics, default is `true`. // Stat represents whether to log statistics, default is `true`.
Stat bool `json:",default=true"` Stat bool `json:",default=true"`
// KeepDays represents how many days the log files will be kept. Default to keep all files. // KeepDays represents how many days the log files will be kept. Default to keep all files.
// Only take effect when Mode is `file` or `volume`, both work when Rotation is `daily` or `size`. // Only take effect when Mode is `file` or `volume`, both work when Rotation is `daily` or `size`.
@ -38,7 +38,7 @@ type LogConf struct {
// MaxSize represents how much space the writing log file takes up. 0 means no limit. The unit is `MB`. // MaxSize represents how much space the writing log file takes up. 0 means no limit. The unit is `MB`.
// Only take effect when RotationRuleType is `size` // Only take effect when RotationRuleType is `size`
MaxSize int `json:",default=0"` MaxSize int `json:",default=0"`
// RotationRuleType represents the type of log rotation rule. Default is `daily`. // Rotation represents the type of log rotation rule. Default is `daily`.
// daily: daily rotation. // daily: daily rotation.
// size: size limited rotation. // size: size limited rotation.
Rotation string `json:",default=daily,options=[daily,size]"` Rotation string `json:",default=daily,options=[daily,size]"`

Loading…
Cancel
Save