Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-3532

Log4j 2.x is not compatible with Jansi 2.x

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.15.0, 2.16.0, 2.17.1, 2.17.0, 2.17.2
    • None
    • Appenders, Core
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jycchoi Joseph Choi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: