You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/07/06 18:08:00 UTC

[jira] [Commented] (LOG4J2-3545) Log4J-JCL should have the same OSGI configuration as Log4j-SLF4J18

    [ https://issues.apache.org/jira/browse/LOG4J2-3545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17563370#comment-17563370 ] 

ASF subversion and git services commented on LOG4J2-3545:
---------------------------------------------------------

Commit 6dc0f07eb8bd6b43b15e56f58313c448c41b1f40 in logging-log4j2's branch refs/heads/dependabot/maven/com.conversantmedia-disruptor-1.2.20 from Piotr P. Karwasz
[ https://gitbox.apache.org/repos/asf?p=logging-log4j2.git;h=6dc0f07eb8 ]

[LOG4J2-3545] Add Service Loader Mediator support 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)