|OSGi + Logback + slf4j - Eclipse Run Configuration [message #987726]
||Tue, 27 November 2012 13:36
| Tobias P.
Registered: April 2012
here is my configuration:
We are developing an OSGi application and want to include logging. I decided to use slf4j + logback.
We are using Eclipse as an IDE and Tycho to benefit from the Eclipse IDE like Manifest Editor and so on.
So i have tried the following:
Created a new plugin with the following Manifest.mf
Now when i move to Run -> Run Configurations -> OSGi Framework and select my Bundle and clicl "Add Required plugins" more then 100 Bundles will be selected and i get a lot of errors and exceptions.
So i came up with a new plugin from existing Jars which includes the following three jars: logback-classic-1.0.7 logback-core-1.0.7 com.springsource.slf4j.api-1.6.1 (I dont believe this is a good idea, but hey...)
If i create a new run configuration manually (not clicking "add required bundles" it works as expected but as far as i click "add required bundles" i come back to the more then 100 Bundles with a lot of errors (some jetty stuff for example...)
So my Question is: How can i enable logback and slf4j in my OSGi application and use it within eclipse and configure it properly???
If you need more information please feel free to ask