[ https://issues.apache.org/jira/browse/LOG4J2-3545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17601596#comment-17601596 ]
ASF subversion and git services commented on LOG4J2-3545: --------------------------------------------------------- Commit 43fcdd9a9c2f458dd61c12551ec66d631113391b in logging-log4j2's branch refs/heads/master from Ralph Goers [ https://gitbox.apache.org/repos/asf?p=logging-log4j2.git;h=43fcdd9a9c ] LOG4J2-3545 - Add correct manifest entries for OSGi to log4j-jcl > Log4J-JCL should have the same OSGI configuration as Log4j-SLF4J18 > ------------------------------------------------------------------ > > Key: LOG4J2-3545 > URL: https://issues.apache.org/jira/browse/LOG4J2-3545 > Project: Log4j 2 > Issue Type: Improvement > Components: JCL Bridge > Affects Versions: 2.17.2 > Reporter: Johan Compagner > Assignee: Piotr Karwasz > Priority: Major > > if you look at the manifest in this jar: > [https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-jcl/2.17.2/log4j-jcl-2.17.2.jar] > compared to the one that is in here: > [https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-slf4j18-impl/2.17.2/log4j-slf4j18-impl-2.17.2.jar] > > then slf4j has the right OSGI manifest entries to work correctly with the > ServiceLoader > SLF4j has: > > Require-Capability: osgi.extender;filter:="(osgi.extender=osgi.service > loader.registrar)",osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))" > Provide-Capability: osgi.serviceloader;osgi.serviceloader="org.slf4j.s > pi.SLF4JServiceProvider" > > JCL has: > > Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))" > > this should become to fully support it in an OSGi environment: > > Require-Capability: osgi.extender;filter:="(osgi.extender=osgi.servicelo > ader.registrar)",osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))" > Provide-Capability: > osgi.serviceloader;osgi.serviceloader="org.apache.commons.logging.LogFactory" > > to follow the spec: [133 Service Loader Mediator Specification - OSGi > Enterprise > 7|https://docs.osgi.org/specification/osgi.enterprise/7.0.0/service.loader.html] > > -- This message was sent by Atlassian Jira (v8.20.10#820010)