How to limit ros2 log size
Hello: I am using ros2 RCLCPP_INFO to record the log, but my process will record a lot of log, so the ROS_LOG_DIR will too big. Does eveeyone know how to limit the single log file size in ros2? or how to delete the file when ros2 keeping the log file?
Thanks
A very good question, there is no detailed documentation, or I am not able to find it.
Hi! I'm also having trouble with this topic. I work with an automated mobile robot industry, and the problem is, that ROS keeps writing all the time into the same log file, meaning the system will run out of diskspace after a while. So is there any ways to limit the logging by e.g. writing to a new file, and keeping some maximum amount of log files on the disk?