ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

On Linux, a flexible solution is logrotate

It allows logs to be archived based on age and/or size; archives logs may be compressed; versions may be capped: etc

When using log rotate on a running system which is not coded to handle its log files being closed/moved by an external process, use the copytruncate option as it will preserve the open file handle(s) being used by other programs.