Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Orbit » How to use logback Orbit bundles?
How to use logback Orbit bundles? [message #893021] Mon, 02 July 2012 10:35 Go to next message
Libor Jelinek is currently offline Libor JelinekFriend
Messages: 143
Registered: January 2012
Location: Prague, Czech Rep.
Senior Member

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 Go to previous messageGo to next message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 452
Registered: July 2009
Location: Germany ✈ Vancouver
Senior Member

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 Go to previous message
Libor Jelinek is currently offline Libor JelinekFriend
Messages: 143
Registered: January 2012
Location: Prague, Czech Rep.
Senior Member

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
>
Previous Topic:GWT missing requirement
Next Topic:What to do about a bug in an Orbit provided bundle
Goto Forum:
  


Current Time: Sun Nov 23 07:29:49 GMT 2014

Powered by FUDForum. Page generated in 0.02836 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software