How to limit ros2 log size
Hello: I am using ros2 RCLCPPINFO to record the log, but my process will record a lot of log, so the ROSLOG_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
Asked by jufeng wu on 2021-10-25 23:03:18 UTC
Comments
A very good question, there is no detailed documentation, or I am not able to find it.
Asked by tommy_erko on 2023-01-10 08:02:04 UTC
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?
Asked by ahopsu on 2023-03-02 17:09:37 UTC