Support setting log-level via command-line
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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