Adds {severity_with_color} as a log format option.#526
Adds {severity_with_color} as a log format option.#526alexmaclean6 wants to merge 6 commits intoros2:rollingfrom
Conversation
Signed-off-by: Alex MacLean <macleale@amazon.com>
4cad812 to
b7a4469
Compare
Signed-off-by: Alex MacLean <macleale@amazon.com>
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com> Signed-off-by: Alex MacLean <alex@macleanfam.org>
Signed-off-by: Alex MacLean <macleale@amazon.com>
0b8c24c to
8674a60
Compare
|
@ahcorde waffle team is assigning this to you. Commenting so I see when it gets merged so I can share it with the community. |
ahcorde
left a comment
There was a problem hiding this comment.
Do you mind to add some documentation on ros2_documentation about how to use this new feature ?
|
Pulls: #526 |
Happy to. I'll update the documentation on Monday, and create a pull request to |
|
Added documentation: ros2/ros2_documentation#6045 |
|
@ahcorde - I'm trying to decipher the build failures that you listed. Are those build infrastructure errors? I don't see compile or test failures in the console output. I only see IO Exceptions for Jenkins and Hudson. |
|
Pulls: #526 |
fujitatomoya
left a comment
There was a problem hiding this comment.
@alexmaclean6 are you still working on this? if you are, can you address the CI failures?
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
|
Pulls: #526 |
|
friendly ping @alexmaclean6 |
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
|
@fujitatomoya I included your suggestions |
|
Pulls: #526 |
fujitatomoya
left a comment
There was a problem hiding this comment.
lgtm with green CI.
|
@ahcorde thanks for fixing this. it does seem like windows failure is related to this PR? |
|
@Mergifyio rebase |
❌ Pull request can't be updated with latest base branch changesDetailsThis pull request seems to come from a fork, and Mergify needs the author's permission to update its branch. |
Description
This change adds a new log formatting token option:
{severity_with_color}. When used in the log format string, the severity level will be colorized in the log output, but the rest of the line will not be affected. IfRCUTILS_COLORIZED_OUTPUT=1, causing the entire line to be colorized,{severity_with_color}behaves the same as{severity}.Example usage:
Is this user-facing behavior change?
Yes. It allows users to use
{severity_with_color}in their log format.Did you use Generative AI?
No
Additional Information