How do I stop roscpp from logging?
roscpp
writes files under ${ROS_LOG_DIR:-${ROS_HOME:-${HOME}/.ros}/log}
. Assuming an environment where there is no disk space and/or no mounted, writable volume, what can I do to stop roscpp
from writing logs?
Here's some things I've tried that don't work:
export HOME=/nonexistent
export ROS_HOME=/dev/null
export ROS_LOG_DIR=/dev/null
export ROSCONSOLE_CONFIG_FILE=/tmp/rosconsole.config && echo "log4j.threshold=OFF" >$ROSCONSOLE_CONFIG_FILE
Here's something that _does_ work, but requires nullfs
:
nullfs /mnt/ros-log-dir && export ROS_LOG_DIR=/mnt/ros-log-dir