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/07/06 07:33:00 UTC

[jira] [Resolved] (LOG4J2-3546) log4j-to-slf4j does not support osgi

     [ https://issues.apache.org/jira/browse/LOG4J2-3546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Piotr Karwasz resolved LOG4J2-3546.
-----------------------------------
    Fix Version/s: 2.18.1
       Resolution: Fixed

Hi [~tiby01],

I switched {{log4j-to-slf4j}} and {{log4j-to-jul}} from using the Service Loader Mediator to using an Activator. Can you check the latest {{2.18.1-SNAPSHOT}} and close the issue? The snapshots are available on [https://repository.apache.org/content/repositories/snapshots/].

> log4j-to-slf4j does not support osgi
> ------------------------------------
>
>                 Key: LOG4J2-3546
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3546
>             Project: Log4j 2
>          Issue Type: Improvement
>            Reporter: Tiberiu Adrian Carp
>            Assignee: Piotr Karwasz
>            Priority: Minor
>             Fix For: 2.18.1
>
>
> osgi is supported by [log4j-core|https://github.com/apache/logging-log4j2/tree/release-2.x/log4j-core], but not by [log4j-to-slf4j.|https://github.com/apache/logging-log4j2/tree/release-2.x/log4j-to-slf4j]
> In the [log4j-core|https://github.com/apache/logging-log4j2/tree/release-2.x/log4j-core], it can be seen the [OSGi Activator|https://github.com/apache/logging-log4j2/blob/release-2.x/log4j-core/src/main/java/org/apache/logging/log4j/core/osgi/Activator.java] , which does not exist in the [log4j-to-slf4j|https://github.com/apache/logging-log4j2/tree/release-2.x/log4j-to-slf4j] .



--
This message was sent by Atlassian Jira
(v8.20.10#820010)