Skip to content

Add documentation for log format placeholders.#6045

Open
alexmaclean6 wants to merge 6 commits intoros2:rollingfrom
alexmaclean6:rolling
Open

Add documentation for log format placeholders.#6045
alexmaclean6 wants to merge 6 commits intoros2:rollingfrom
alexmaclean6:rolling

Conversation

@alexmaclean6
Copy link

Description

This pull request adds documentation for the log format tokens ({severity}, {function_name}, etc.). It includes {severity_with_color}, a new token introduced in a separate pull request.

Did you use Generative AI?

No

Signed-off-by: Alex MacLean <macleale@amazon.com>
@ahcorde
Copy link
Collaborator

ahcorde commented Nov 24, 2025

wait for this PR ros2/rcutils#526 (comment)

Copy link
Collaborator

@kscottz kscottz left a comment

Choose a reason for hiding this comment

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

This is a fantastic addition. Thank you so much!

^^^^^^^^^^^^^^^^^^^^^^^^^

If you would like more or less verbose formatting, you can use the ``RCUTILS_CONSOLE_OUTPUT_FORMAT`` environment variable.
It provides the following options for formatting the log line:
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

ah it's actually already linked at line 423

Copy link
Collaborator

Choose a reason for hiding this comment

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

So we're good to go here?

Copy link
Contributor

Choose a reason for hiding this comment

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

No I think this section doesn't need to be added because it's already linked at line 423

Copy link
Collaborator

Choose a reason for hiding this comment

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

@tonynajjar thanks for pointing that out, and that is right. i believe what we should do here is to add the additional tokens to https://docs.ros.org/en/rolling/Concepts/Intermediate/About-Logging.html#environment-variables. this PR generates the duplication.

Copy link
Contributor

Choose a reason for hiding this comment

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

^^^^^^^^^^^^^^^^^^^^^^^^^

If you would like more or less verbose formatting, you can use the ``RCUTILS_CONSOLE_OUTPUT_FORMAT`` environment variable.
It provides the following options for formatting the log line:
Copy link
Collaborator

Choose a reason for hiding this comment

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

@tonynajjar thanks for pointing that out, and that is right. i believe what we should do here is to add the additional tokens to https://docs.ros.org/en/rolling/Concepts/Intermediate/About-Logging.html#environment-variables. this PR generates the duplication.

@fujitatomoya
Copy link
Collaborator

@alexmaclean6 are you still working on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants