prevent rospy.loginfo from logging to file <node>-stdout.log
I have some python ROS nodes that logs purely with the rosout
logger provided with rospy.loginfo
etc.
This means the same information ends up in two files, example:
- MyNode-123.log
- MyNode-123-stdout.log
Can I prevent the rosout
data to go to the *-stdout.log
file?
Besides being redundant, the stdout file has the disadvantage of not "rolling" when it gets large. I don't want to send the log data to the screen either.
Do I need to setup my own python_logging.conf
? If so, I would appreciate a tip on how it might look.
(ROS melodic, Ubuntu 18.04)
So you just want to prevent the log files for the individual nodes from being created? Not disable logging entirely? Is this related to your other question (#q317030)?
No to all:
Edited question title for clarity