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

log4j-1.2-api works only with core

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.11.1
    • 2.12.1
    • Log4j 1.2 bridge
    • None

    Description

      The Logger implementation of log4j-1.2-api casts to org.apache.logging.log4j.core.LoggerContext. This works only if the provider of log4j(2) is the default ("core") provider. I have written my own provider that includes its own implementation of a LoggerContext (properly implementing "org.apache.logging.log4j.spi.LoggerContext", of course). So the cast fails.

      IMHO log4j-1.2-api should work with any implementation of a log4j(2) provider.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            drmlipp Michael Lipp
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment