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

LoggerFactory in 1.2 API module is not compatible with 1.2

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.6
    • Component/s: log4j 1.2 emulation
    • Labels:
    • Flags:
      Patch, Important

      Description

      LoggerFactory from log4j 1.2 compatibility layer is not compatible with the original 1.2 version. Therefore software which creates its customized loggers is failing due to AbstractMethodError error.

      The fix is quite simple - just keep the original interface. The attached patch continues to support the current method too, but uses different interface name for the functionality so it doesn't clash with 1.2 API.

        Attachments

        1. log4j-1.2-compatible-factory.diff
          4 kB
          Zbynek Vyskovsky
        2. Re_use_LoggerAdapter.patch
          5 kB
          Matt Sicker

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kvr Zbynek Vyskovsky
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified