Logback in an OSGi application

I develop an OSGi application and I like to upgrade the logging to slf4j 2.0.x and logback 1.4.7. Now I I can't get my application to work because logback shows the message 'Unresolved requirement: Require-Capability: osgi.serviceloader; osgi.serviceloader="ch.qos.logback.classic.spi.Configurator"'. How can I configure my application to satisfy this message? What bundle can I use that provide the requested Configurator? Best; Benno Luthiger

Hi Benno, I suspect this issue was fixed in LOGBACK-1736. See https://jira.qos.ch/browse/LOGBACK-1736 The fix is available in logback releases 1.3.8 and 1.4.8. Please let us know if it works for you. -- Ceki Gülcü Sponsoring SLF4J/logback/reload4j at https://github.com/sponsors/qos-ch On 6/12/2023 6:15 PM, logback users list via logback-user wrote:
I develop an OSGi application and I like to upgrade the logging to slf4j 2.0.x and logback 1.4.7. Now I I can't get my application to work because logback shows the message 'Unresolved requirement: Require-Capability: osgi.serviceloader; osgi.serviceloader="ch.qos.logback.classic.spi.Configurator"'. How can I configure my application to satisfy this message? What bundle can I use that provide the requested Configurator?
Best; Benno Luthiger

Dear Ceki Thanks for the hint. Using release 1.4.8 helped indeed. Best, Benno On Tue, 13 Jun 2023 at 13:33, Ceki Gülcü via logback-user < logback-user@qos.ch> wrote:
Hi Benno,
I suspect this issue was fixed in LOGBACK-1736.
See https://jira.qos.ch/browse/LOGBACK-1736
The fix is available in logback releases 1.3.8 and 1.4.8.
Please let us know if it works for you.
-- Ceki Gülcü
Sponsoring SLF4J/logback/reload4j at https://github.com/sponsors/qos-ch
On 6/12/2023 6:15 PM, logback users list via logback-user wrote:
I develop an OSGi application and I like to upgrade the logging to slf4j 2.0.x and logback 1.4.7. Now I I can't get my application to work because logback shows the message 'Unresolved requirement: Require-Capability: osgi.serviceloader; osgi.serviceloader="ch.qos.logback.classic.spi.Configurator"'. How can I configure my application to satisfy this message? What bundle can I use that provide the requested Configurator?
Best; Benno Luthiger
_______________________________________________ logback-user mailing list logback-user@qos.ch https://mailman.qos.ch/cgi-bin/mailman/listinfo/logback-user
participants (3)
-
Benno Luthiger
-
Ceki Gülcü
-
logback users list