-
Notifications
You must be signed in to change notification settings - Fork 164
Open
Description
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:
launch/launch/launch/logging/__init__.py
Lines 320 to 322 in 57c1aee
| self.file_formatter = logging.Formatter( | |
| log_format, style=log_style | |
| ) |
Additional Information
No response