You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Piotr Karwasz (Jira)" <ji...@apache.org> on 2022/09/08 03:59:00 UTC

[jira] [Updated] (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:all-tabpanel ]

Piotr Karwasz updated LOG4J2-3545:
----------------------------------
    Fix Version/s: 2.19.0

> 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
>             Fix For: 2.19.0
>
>
> 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)