Robotics StackExchange | Archived questions

Completely disable ROS from logging to log files?

I am trying to disable ROS from creating any ROS files but I haven't been able to find any solution that actually works.

I tried log4j.threshold=OFF as described in http://wiki.ros.org/rosconsole but that doesn't work for me.

I also tried setting export ROSOUT_DISABLE_FILE_LOGGING=True but that didn't help either.

I am using ROS melodic and I am using bazel to build the package not CMake.

I am completely stuck is there any other way for ROS to not generate any log files.

Asked by bob-00 on 2021-11-05 04:38:56 UTC

Comments

Take a look at this previous question. It’s quite old but may help you: https://answers.ros.org/question/9627/how-can-i-completely-disable-writing-logs-to-filesystem/

Asked by osilva on 2021-11-05 15:32:03 UTC

Answers