ros2 container logging
When launching a ComposableNodeContainer in ROS2/Galactic I get the following output by default:
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [component_container-1]: process started with pid [969242]
[component_container-1] [INFO 1645624860.169280519] [metavision_driver_container]: Load Library: xxx
[component_container-1] [INFO 1645624860.173747162] [metavision_driver_container]: Found class: xxx
[component_container-1] [INFO 1645624860.173835721] [metavision_driver_container]: Instantiate class: xxx
[component_container-1] [INFO 1645624860.177171352] [event_camera_1]: sync mode: secondary
[component_container-1] [INFO 1645624860.747093574] [event_camera_1]: camera serial number:
How can I get rid of the [component_container-1]
field? It takes up too much screen real estate. I tried setting:
RCUTILS_CONSOLE_OUTPUT_FORMAT=[{severity} {time}] [{name}]: {message}
But this variable only seems to influence the logging output after the first field.
I can't speak to getting rid of it all together (I would look into the launch system for that...) but that portion is just the
name
of the node given (eventually) to thelaunch.actions.ExecuteProcess
action.