ros2 / ros2/launch

Support setting log-level via command-line

Open
#383 9 comments 34 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
Python
Stars
155
Forks
182
Avg merge
2d 14h
Merged PRs (30d)
6

Description

Feature request

Feature description

Allow setting log-level via command line, similar as documented for ros2 run, ros2 service, etc. see ros2/Tutorials/Logging-and-logger-configuration

Steps to reproduce issue
ros2 launch demo_nodes_cpp talker_listener.launch.py --ros-args --log-level debug
Expected behavior

log level is set to debug

Actual behavior

ros2: error: unrecognized arguments: --ros-args --log-level debug

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the ros2 launch command's argument parsing and compare how ros2 run and ros2 service accept --ros-args and --log-level. Re-run the documented launch command with --log-level debug; done means the command accepts those options and the launched processes use the requested log level.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.