Get logging output to /rosout using rclutils (writing a client library)
I'm writing a ROS2 client library for SWI-Prolog. Basic pub/sub works. Next step is to get logging to work. Calling rcutils_log()
works fine for loging to the console, but nothing appears in /rosout
or in rqt
. It doesn't seem to matter whether I leave the initialization to RCUTILS_LOGGING_AUTOINIT
or call rcutils_logging_initialize()
. Controlling the level affects the output in the console, so the basics seem to work. I tried with and without a creating a ROS node. The subscription works fine and the node is visible in rqt
.
Platform is Ubuntu 20.04 using ROS2 foxy.
Any clue, including clues on how to debug this?