Add more styling support to the Logback and Log4j2 color converters#49285
Conversation
|
Thanks for the PR, @mayankvirole, but this isn't quite what we're looking for. Phil described this in his comment on the issue:
For example, it should be possible to produce output that's both red and underlined ( Would you like to refine your proposal to support using style, background, and color in combination? |
|
Yes , allow me some time to refactor the code |
005528d to
d30ebac
Compare
|
I have refined my approach , please review it at your convenience. |
|
Thanks for the updates, @mayankvirole. I'd like to discuss this one with the rest of the team. With the support for styling (and not just foreground and background colours), the |
|
We discussed this today and we're going to stick with the |
|
Sounds good, thanks for the update! Let me know if there's anything else you need me to change |
- Add REVERSE (ANSI code 7) to AnsiStyle enum - Expand ColorConverter ELEMENTS map to include all AnsiStyle values (bold, italic, underline, normal, faint, reverse) and all AnsiBackground colors with the bg_ prefix (bg_red, bg_bright_green, etc.) - Update tests for both logback and log4j2 converters See spring-projectsgh-49285 Signed-off-by: mvirole <virolemayank@gmail.com>
- Add REVERSE (ANSI code 7) to AnsiStyle enum - Expand ColorConverter ELEMENTS map to include all AnsiStyle values (bold, italic, underline, normal, faint, reverse) and all AnsiBackground colors with the bg_ prefix (bg_red, bg_bright_green, etc.) - Update tests for both logback and log4j2 converters See spring-projectsgh-49285 Signed-off-by: mvirole <virolemayank@gmail.com>
d30ebac to
29e4938
Compare
|
Thanks very much, @mayankvirole. |
Closes #49262