Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.14.1
-
None
-
None
Description
This is a test pattern layout:
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} %highlight{[%level]}{FATAL=red bright, ERROR=red bright, WARN=yellow bright, INFO=magenta bright, DEBUG=green, TRACE=blue bright} [%t] %logger{36} - %msg%n" disableAnsi="false"/>
As you see for TRACE level is `blue bright`. However, this is a generated code:
[34;1m[TRACE][m . As you see we have SGR function with two parameters: 34 is color and 1 is bold.
For example linux terminal will render it this way:
We see, that it is not `bright blue` but `bold blue`. At the same time in manual they speak about different colors:
And if we want bright blue, generated escape code should be `[94m[TRACE][m` - see the link to SGR function I provided.
Attachments
Attachments
Issue Links
- causes
-
LOG4J2-3561 Ansi color with spaces in style pattern not supported
- Resolved
- links to