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

Revision history [back]

click to hide/show revision 1
initial version

It appears that ROS2 uses python logging under the hood. Each node in a python package sets the logger name to be the same as the node name. You can see this by doing this inside your node:

print("ROS Node logger name:", self.get_logger().name)

However, in the other python libraries, if they use logging.getLogger(__name__), they return <package_name>.<filename>.

If the ROS node's logger name was <package_name> it would be fine.

I have not yet figured out a way to make this work.