Skip to content

Commit

Permalink
doc fix for rcutils environmental variables. (#3833) (#3850)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoya.Fujita <[email protected]>
(cherry picked from commit a2ba590)

Co-authored-by: Tomoya Fujita <[email protected]>
  • Loading branch information
mergify[bot] and fujitatomoya authored Aug 21, 2023
1 parent 9b304d1 commit 7528fe8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions source/Tutorials/Demos/Logging-and-logger-configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -387,19 +387,21 @@ For example, to additionally get the timestamp and location of the log calls, st
.. code-block:: bash
export RCUTILS_CONSOLE_OUTPUT_FORMAT="[{severity} {time}] [{name}]: {message} ({function_name}() at {file_name}:{line_number})"
ros2 run logging_demo logging_demo_main
.. group-tab:: macOS

.. code-block:: bash
export RCUTILS_CONSOLE_OUTPUT_FORMAT="[{severity} {time}] [{name}]: {message} ({function_name}() at {file_name}:{line_number})"
ros2 run logging_demo logging_demo_main
.. group-tab:: Windows

.. code-block:: bash
# set "RCUTILS_CONSOLE_OUTPUT_FORMAT=[{severity} {time}] [{name}]: {message} ({function_name}() at {file_name}:{line_number})"
ros2 run logging_demo logging_demo_main
set "RCUTILS_CONSOLE_OUTPUT_FORMAT=[{severity} {time}] [{name}]: {message} ({function_name}() at {file_name}:{line_number})"
ros2 run logging_demo logging_demo_main
You should see the timestamp in seconds and the function name, filename and line number additionally printed with each message.
*The ``time`` option is only supported as of the ROS 2 Bouncy release.*
Expand All @@ -418,19 +420,21 @@ For example:
.. code-block:: bash
export RCUTILS_COLORIZED_OUTPUT=0 # 1 for forcing it
ros2 run logging_demo logging_demo_main
.. group-tab:: macOS

.. code-block:: bash
export RCUTILS_COLORIZED_OUTPUT=0 # 1 for forcing it
ros2 run logging_demo logging_demo_main
.. group-tab:: Windows

.. code-block:: bash
# set "RCUTILS_COLORIZED_OUTPUT=0"
ros2 run logging_demo logging_demo_main
set "RCUTILS_COLORIZED_OUTPUT=0" :: 1 for forcing it
ros2 run logging_demo logging_demo_main
You should see that debug, warn, error and fatal logs aren't colorized now.

Expand Down

0 comments on commit 7528fe8

Please sign in to comment.