Description
It would be very nice if support for colorlog could be added, for colorizing log outputs for launch files.
Motivation
Makes logs look nicer & easier to skim over
Design / Implementation Considerations
Should be relatively easy to implement, just check if RCUTILS_COLORIZED_OUTPUT is set to 1 (maybe add another variable?) or the process is detected to be running in a tty, and then replace the Formatter with a ColoredFormatter:
|
self.file_formatter = logging.Formatter( |
|
log_format, style=log_style |
|
) |
Additional Information
No response
Description
It would be very nice if support for colorlog could be added, for colorizing log outputs for launch files.
Motivation
Makes logs look nicer & easier to skim over
Design / Implementation Considerations
Should be relatively easy to implement, just check if
RCUTILS_COLORIZED_OUTPUTis set to1(maybe add another variable?) or the process is detected to be running in a tty, and then replace theFormatterwith aColoredFormatter:launch/launch/launch/logging/__init__.py
Lines 320 to 322 in 57c1aee
Additional Information
No response