get_logger
Hey folks. Very beginner question as I was experimenting with both C++ and Python.
With C++ i found that you can print to screen using:
RCLCPP_INFO(rclcpp::get_logger("rclcpp"), "BLAH BLAH BLAH");
Now I wanted to do the same thing with Python, however, so far i have only been able to call the get_logger function inside of a node class. How can i do it outside of it similar to its C++ counterpart?
I was thinking it should be similar:
RCLPY_INFO(rclpy.logging.get_logger().info("rclpy"), "BLAH BLAH BLAH")
but ofcourse it is not.
Any help would be great thanks!