You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Michael Lipp (JIRA)" <ji...@apache.org> on 2019/02/26 12:46:00 UTC

[jira] [Created] (LOG4J2-2556) log4j-1.2-api works only with core

Michael Lipp created LOG4J2-2556:
------------------------------------

             Summary: log4j-1.2-api works only with core
                 Key: LOG4J2-2556
                 URL: https://issues.apache.org/jira/browse/LOG4J2-2556
             Project: Log4j 2
          Issue Type: Bug
          Components: log4j 1.2 emulation
    Affects Versions: 2.11.1
            Reporter: Michael Lipp


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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)