ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Nodes send log messages on the topic /rosout. These messages are then received by the rosout node and republished on /rosout_agg. You can subscribe one of these topics, /rosout_agg should be preferred though because subscribing to /rosout might lead to many socket connections to all the nodes running on your system. Have a look at the message type of /rosout_agg, rosgraph_msgs/Log. It should contain all the information you need, i.e. the log level and the message.

Please note that info log messages are only published if the logger level of the node that is sending the log message is set to Info or Debug.

Nodes send log messages on the topic /rosout. These messages are then received by the rosout node and republished on /rosout_agg. /rosout_agg. You can subscribe one of these topics, /rosout_agg should be preferred though because subscribing to /rosout might lead to many socket connections to all the nodes running on your system. Have a look at the message type of /rosout_agg, rosgraph_msgs/Log. which is rosgraph_msgs/Log (UPDATE 20200326 by @130s for clarity). It should contain all the information you need, i.e. the log level and the message.

Please note that info log messages are only published if the logger level of the node that is sending the log message is set to Info or Debug.