I am currently trying to set up a logging facility in our Eclipse based product using SLF4J as bundles out of the Eclipse Orbit project.
I use in detail:
org.slf4j.api
ch.qos.logback.classic
ch.qos.logback.core
ch.qos.logback.slf4j
When I try to run the test cases using the SLF4J log api, in the Tycho build I get the error message
19:05:50 SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
19:05:50 SLF4J: Defaulting to no-operation (NOP) logger implementation
19:05:50 SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Surefire only uses the target platform for the Eclipse product and plugin Manifest.MF files to detect the dependencies. Since ch.qos.logback.slf4j is a fragment, a direct dependency in the Manifest is not possible.
My assumption is that the fragment is not part of the runtime configuration during the test execution.
I hope my question is not too stupid, but how can I configure the environment so that the fragment is added to the runtime configuration and SLF4J can solve the request for the StaticLoggerBinder?