stop ros2 logging stdout but to a .log file
I need to write a test shell script, is there a enviroment variable config (or something like ros2 run pkg node --param
) that could stop ros2 logging stdout (stop brush screen) but still can log to a file?
i tried export ROS_LOG_DIR=~/my_logs
as in this doc, .log file is ok for me, but there is still screen brushing...
actually the logging info is come from
ros2 bag play ...
in the test shell script, i just foundros2 run logging_demo logging_demo_main | grep hihi &
bygrep
could stop screen-brushing, but no effort forros2 bag play ...|grep hihi
(with grep there still screen-brushing)