Skip to content

Commit

Permalink
Add logging section to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az authored Dec 16, 2024
1 parent 24b78bc commit 565b5fe
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
* [Post-Processing Filters](#post-processing-filters)
* [Available Services](#available-services)
* [Available Actions](#available-actions)
* [Efficient intra-process communication](#efficient-intra-process-communication)
* [Logging](#logging)
* [Contributing](CONTRIBUTING.md)
* [License](LICENSE)

Expand Down Expand Up @@ -763,6 +763,15 @@ The launch file accepts a parameter, `intra_process_comms`, controlling whether
ros2 launch realsense2_camera rs_intra_process_demo_launch.py intra_process_comms:=true
```

<hr>

## Logging
For debugging purposes, users can control the ROS wrapper log level and also the SDK log level.
* ROS wrapper log level - set the parameter `log_level` in the ros2 launch command or in the launch file itself
e.g. `ros2 launch realsense2_camera rs_launch.py log_level:=warn`
* LibRealSense2 SDK log level - export the environment variable called `LRS_LOG_LEVEL` and set it to the desired log level.
e.g. `export LRS_LOG_LEVEL=debug`

</details>


Expand Down

0 comments on commit 565b5fe

Please sign in to comment.