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

Revision history [back]

click to hide/show revision 1
initial version

I know this question was asked before dashing was released, and that eloquent is being released soon with changed syntax...

But for dashing, you can use the following syntax:

  launch_ros.actions.Node(package='demo_nodes_cpp',
    node_executable='talker',
    output='screen', 
     parameters=[config_file],
    arguments=[('__log_level:=debug')])

This will set the log level to debug for every node being run in this process (rcl, rclcpp, the rmw layer). I don't know how to restrict the log changes to just "talker" node unfortunately. I think logging is still a work in progress.