You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "HannesWell (via GitHub)" <gi...@apache.org> on 2023/03/16 13:07:36 UTC

Re: [I] log4j-to-slf4j not working with slf4j v2 (logging-log4j2)

HannesWell commented on issue #1232:
URL: https://github.com/apache/logging-log4j2/issues/1232#issuecomment-1471922943

   In the OSGi world it is currently indeed impossible to use log4j-to-slf4j in conjunction with slf4j-2 because the Manifest only imports the slf4j packages only up until, but excluding 2:
   ```
   Import-Package:
    [...]
    org.slf4j;version="[1.7,2)",
    org.slf4j.spi;version="[1.7,2)"
   ```
   If log4j-to-slf4j works well with slf4j 1 and 2 I suggest to widen the package import range to "[1.7,3)".
   If the log4j maintainers are interested I can provide a corresponding PR.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org