|
|
@ -32,7 +32,7 @@ type LogConf struct {
|
|
|
|
StackCooldownMillis int `json:",default=100"`
|
|
|
|
StackCooldownMillis int `json:",default=100"`
|
|
|
|
// MaxBackups represents how many backup log files will be kept. 0 means all files will be kept forever.
|
|
|
|
// MaxBackups represents how many backup log files will be kept. 0 means all files will be kept forever.
|
|
|
|
// Only take effect when RotationRuleType is `size`.
|
|
|
|
// Only take effect when RotationRuleType is `size`.
|
|
|
|
// Even thougth `MaxBackups` sets 0, log files will still be removed
|
|
|
|
// Even though `MaxBackups` sets 0, log files will still be removed
|
|
|
|
// if the `KeepDays` limitation is reached.
|
|
|
|
// if the `KeepDays` limitation is reached.
|
|
|
|
MaxBackups int `json:",default=0"`
|
|
|
|
MaxBackups int `json:",default=0"`
|
|
|
|
// 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`.
|
|
|
|