Skip to content

[Feature]: logging config #246

@rere950303

Description

@rere950303

Is your feature request related to a problem? Please describe.

It would be helpful if logging-related configurations (MaxSize, MaxAge, MaxBackups) could be handled in the cdc.yaml file.
If this is not possible, the emptyDir volume might fill up, causing the CDC pod to restart periodically.

Describe the solution you'd like.

It would be great if the values below could be configured through a YAML file.

// FileLogConfig serializes file log related config in toml/json.
type FileLogConfig struct {
	// Log rootpath
	RootPath string `toml:"rootpath" json:"rootpath"`
	// Log filename, leave empty to disable file log.
	Filename string `toml:"filename" json:"filename"`
	// Max size for a single file, in MB.
	MaxSize int `toml:"max-size" json:"max-size"`
	// Max log keep days, default is never deleting.
	MaxDays int `toml:"max-days" json:"max-days"`
	// Maximum number of old log files to retain.
	MaxBackups int `toml:"max-backups" json:"max-backups"`
}

Describe an alternate solution.

No response

Anything else? (Additional Context)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions