raphaelNguyen opened a new issue, #4105:
URL: https://github.com/apache/logging-log4j2/issues/4105

   ## Description
   
   After upgrading to version >= 2.25.0, when rendering ansi, `italic` styling 
on log message no longer works (triggers a warning that the style italic is 
invalid) while `underline` styling on log message produces italic effect on 
rendered text.
   
   This seems to boil down to 
https://github.com/apache/logging-log4j2/pull/3070, which rewrites 
`JAnsiTextRenderer` to use `AnsiEscape` instead of depending on external Jansi 
library to generate ansi escape sequences. However, the enum `AnsiEscape` 
differs from the enums in the old external Jansi library in that:
   * `AnsiEscape` does not have the `ITALIC` entry.
   * `AnsiEscape.UNDERLINE` has the code value of `3` which correspond to 
`ITALIC`.
   * Code value `4` which corresponds to underline style seems to not be 
assigned to any enum value in `AnsiEscape`. 
   
   (Style code referenced from 
https://en.wikipedia.org/wiki/ANSI_escape_code#Select_Graphic_Rendition_parameters)
   
   I'm wondering if this was a bug that existed in `AnsiEscape` from a long 
time ago that was just never noticed. The enum values from this file seems to 
have been unchanged for a long time. Thank you for your assistant with this 
issue.
   
   
   
   ## Configuration
   
   **Version:** >= 2.25.0
   
   **Operating system:** Windows 11
   
   **JDK:** 17.0.16
   
   ## Logs
   
   ```
   // to be supplied
   [Stacktraces, errors, etc. relevant applications logs.]
   ```
   
   ## Reproduction
   
   Will supplement this at a later time.
   [An isolated test reproducing the test.
   JUnit tests similar to the ones in the code base are extremely appreciated.]
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to