[ROS2] How to enable logging
I'm having troubles with my ROS2 setup. One common way I use during troubleshooting is logging. Basically, whenever I face an issue, my standard response is: crank up the logging!
My question is: how do I enable logging to file or standard output with ROS2?
- Is there an environment variable that I could not find in the documentation which should be set?
- Is there a flag to an executable?
I tried this:
$ ros2 topic list __log_level:=debug
But that did not work out..