Polish "Add more styling support to the Logback and Log4j2 color converters"

See gh-49285
This commit is contained in:
Andy Wilkinson
2026-03-12 09:27:04 +00:00
parent 2e12df8e4f
commit 29e4938971
4 changed files with 47 additions and 39 deletions
@@ -113,15 +113,15 @@ The following table describes the mapping of log levels to colors:
| Green
|===
Alternatively, you can specify the color or style that should be used by providing it as an option to the conversion.
For example, to make the text yellow, use the following setting:
Alternatively, you can specify the color and styles that should be used by providing them as options to the conversion.
For example, to make the text yellow and bold, use the following setting:
[source]
----
%clr(%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}){yellow}
%clr(%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}){yellow,bold}
----
The following colors and styles are supported:
The following text colors are supported:
* `black`
* `blue`
@@ -134,13 +134,40 @@ The following colors and styles are supported:
* `bright_white`
* `bright_yellow`
* `cyan`
* `faint`
* `green`
* `magenta`
* `red`
* `white`
* `yellow`
The following background colors are supported:
* `bg_black`
* `bg_blue`
* `bg_bright_black`
* `bg_bright_blue`
* `bg_bright_cyan`
* `bg_bright_green`
* `bg_bright_magenta`
* `bg_bright_red`
* `bg_bright_white`
* `bg_bright_yellow`
* `bg_cyan`
* `bg_green`
* `bg_magenta`
* `bg_red`
* `bg_white`
* `bg_yellow`
The following styles are supported:
* `bold`
* `faint`
* `italic`
* `normal`
* `reverse`
* `underline`
[[features.logging.file-output]]