carbon-relay-ng icon indicating copy to clipboard operation
carbon-relay-ng copied to clipboard

Log rotation

Open theo-bot opened this issue 7 years ago • 1 comments

Hi

How to clear/rotate the logs. If I empty or truncate the logs then the logs file is back to its original size after the next write. Is it possible to implement so SIGHUP signal to re-open the logfile, so logrotation can take place.

Regards

Theo

theo-bot avatar Mar 27 '17 09:03 theo-bot

We use github.com/op/go-logging, not sure yet how to support log rotation the cleanest way, but you're right we should.

Dieterbe avatar Mar 27 '17 09:03 Dieterbe