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

Revision history [back]

Please check out these:

  • https://answers.ros.org/question/311471/selecting-log-level-in-ros2-launch-file/

  • https://docs.ros.org/en/humble/Tutorials/Demos/Logging-and-logger-configuration.html# + https://github.com/ros2/demos/tree/humble/logging_demo, this part is the most interesting one

E.g. for Foxy

launch_ros.actions.Node(
    package='demo_nodes_cpp',
    executable='talker',
    output='screen', 
    arguments=['--ros-args', '--log-level', 'debug']
)