Skip to content

Add logging section to readme #3280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: ros2-development
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please restore this line

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! done

* [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