File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -167,16 +167,25 @@ another_node:
167167 string_param: bar
168168` ` `
169169
170- # ### Logging level
170+ # ### Logging level assignments
171171
172- Minimum logging level can be externally set using the `--log-level` option.
172+ Minimum logging level can be externally set either globally or per logger using the `--log-level` option.
173173
174- As an example, to set logging level to `DEBUG` for `some_ros_executable`, one may execute :
174+ As an example, to set a global logging level to `DEBUG` for `some_ros_executable`, one may execute :
175175
176176` ` ` sh
177177ros2 run some_package some_ros_executable --ros-args --log-level DEBUG
178178` ` `
179179
180+ Loggers can be set using the `--log-level` option as well :
181+
182+ ` ` ` sh
183+ ros2 run some_package some_ros_executable --ros-args --log-level talker1:=DEBUG --log-level talker2:=WARN --log-level rclcpp:=DEBUG
184+ ` ` `
185+
186+ The minimum logging level of a specific logger will override the globally specified minimum logger level.
187+ If a logging level is specified more than once in the passed command line arguments, the last one prevails.
188+
180189See `rcutils` and `rcl` logging documentation for reference on existing logging levels.
181190
182191# ### External logging configuration
You can’t perform that action at this time.
0 commit comments