ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Also I wonder what happens if I let it accumulate and not clean?
Well, you run out of disk space, eventually...
You not googling is obvious, as your question directly relates to http://answers.ros.org/question/229966/does-ros-have-rolling-log-files-ability-to-limit-total-size/ :-)
About your question though:
Of course. However, this requires some manual scripting. IMO, there are two ways.
cron
. You can e.g. use the find
tool with the -mtime
property to get the last modified time of a file and delete via this.logrotate
. However, as the log files typically get "stamped" with the RUN_ID, this will probably also need some fiddeling with the prerotate
and postrotate
scripts.