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/03 10:53:00 UTC

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

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

Piotr Karwasz edited comment on LOG4J2-3546 at 7/3/22 10:52 AM:
----------------------------------------------------------------

Hi [~tiby01],

not every OSGI bundle require an activator. The current versions of {{log4j-to-slf4j}} and {{log4j-to-jul}} rely on the [Service Loader Mediator|http://docs.osgi.org/specification/osgi.cmpn/7.0.0/service.loader.html] service to publish their services in an OSGI environment.


was (Author: pkarwasz):
Hi [~tiby01],

not every OSGI bundle require an activator. The current versions of {{log4j-to-slf4j}} and {{log4j-to-jul}} rely on the [Service Loader Mediator](http://docs.osgi.org/specification/osgi.cmpn/7.0.0/service.loader.html) service to publish their services in an OSGI environment.

> log4j-to-slf4j does not support osgi
> ------------------------------------
>
>                 Key: LOG4J2-3546
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3546
>             Project: Log4j 2
>          Issue Type: Bug
>            Reporter: Tiberiu Adrian Carp
>            Assignee: Piotr Karwasz
>            Priority: Major
>
> 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)