How to use logback Orbit bundles? [message #893021] |
Mon, 02 July 2012 10:35 |
|
Hello (Gunnar, Logback bundle maintainer),
I don't understand what Orbit bundles are equivalent to having
* logback-classic-x.y.jar
* logback-core-x.y.jar
* slf4j-api-x.y.jar
on classpath in non-Eclipse project... My plug-in is depending on org.slf4j.api, ch.qos.logback.classic and ch.qos.logback.core but I still can't log and see only
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Thanks for clarification how Orbit bundles should be used.
Libor
|
|
|
Re: How to use logback Orbit bundles? [message #893030 is a reply to message #893021] |
Mon, 02 July 2012 11:17 |
|
Hi,
Am 02.07.2012 12:35, schrieb Libor Jelínek:
> * logback-classic-x.y.jar
> * logback-core-x.y.jar
> * slf4j-api-x.y.jar
You need the following bundles:
org.slf4j.api
ch.qos.logback.core
ch.qos.logback.classic
ch.qos.logback.slf4j
The 'ch.qos.logback.slf4j' is a fragment that contributes the actual
SLF4J logger implementation.
HTH,
Gunnar
--
Gunnar Wagenknecht
gunnar@xxxxxxxx
http://wagenknecht.org/
|
|
|
Re: How to use logback Orbit bundles? [message #913478 is a reply to message #893030] |
Sat, 15 September 2012 19:06 |
|
2 months later I'm finally have a time to try Logback from Orbit and
I've encountered a dependency cycle between org.slf4j.api and
ch.qos.logback.classis bundles.
Official p2 repo for Logback at http://logback.qos.ch/p2/ has same cycle
dependency between slf4j.api and ch.qos.logback.classis.
Is it a some necessity to OSGi-fy Logback? Should I just ignore it (and
allow for cycles during product export)?
Thanks
Libor
On 07/02/2012 01:17 PM, Gunnar Wagenknecht wrote:
> Hi,
>
> Am 02.07.2012 12:35, schrieb Libor Jelínek:
>> * logback-classic-x.y.jar
>> * logback-core-x.y.jar
>> * slf4j-api-x.y.jar
>
> You need the following bundles:
> org.slf4j.api
> ch.qos.logback.core
> ch.qos.logback.classic
> ch.qos.logback.slf4j
>
> The 'ch.qos.logback.slf4j' is a fragment that contributes the actual
> SLF4J logger implementation.
>
> HTH,
> Gunnar
>
|
|
|
Powered by
FUDForum. Page generated in 0.03673 seconds