feat recorder: add rotate options

This commit is contained in:
Denis Galeev
2025-02-06 17:34:13 +03:00
committed by ginuerzh
parent 75a106ee84
commit e4b1c3c2b5
3 changed files with 45 additions and 19 deletions
+3 -2
View File
@@ -278,8 +278,9 @@ type RecorderConfig struct {
}
type FileRecorder struct {
Path string `json:"path"`
Sep string `yaml:",omitempty" json:"sep,omitempty"`
Path string `json:"path"`
Sep string `yaml:",omitempty" json:"sep,omitempty"`
Rotation *LogRotationConfig `yaml:",omitempty" json:"rotation,omitempty"`
}
type TCPRecorder struct {