Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Log rotation #5926

@arkpar

Description

@arkpar

Substrate logs to stderr and stdout. It is impossible to organize log rotation without copying previously logged data. E.g. logrotate has to be configured with copytruncate option that copies the file and truncates it, losing some data in the process.

Would be best to use a logger that supports rotation out of the box, or at least allows reopening output file on SIGHUP
https://github.com/emabee/flexi_logger looks promising, as long as there's no performance regression.

Metadata

Metadata

Assignees

Labels

J0-enhancementAn additional feature request.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions