You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Joseph Choi (Jira)" <ji...@apache.org> on 2022/06/09 02:31:00 UTC

[jira] [Created] (LOG4J2-3532) Log4j 2.x is not compatible with Jansi 2.x

Joseph Choi created LOG4J2-3532:
-----------------------------------

             Summary: Log4j 2.x is not compatible with Jansi 2.x
                 Key: LOG4J2-3532
                 URL: https://issues.apache.org/jira/browse/LOG4J2-3532
             Project: Log4j 2
          Issue Type: Bug
          Components: Appenders, Core
    Affects Versions: 2.17.2, 2.17.0, 2.17.1, 2.16.0, 2.15.0
            Reporter: Joseph Choi


Since Log4j 2.15.0, the project POM has been updated to depend on Jansi 2.x, however, the {{ConsoleAppender}} still expects the presence of the Jansi 1.x class {{{}WindowsAnsiOutputStream{}}}, which has already been removed in Jansi 2.x.

The ANSI coloring will not work if the application bundles with Jansi 2.x.  As a workaround, the application still needs to bundle with the old Jansi 1.x library, which contradicts with the definition in the POM.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)