|Re: SLF4j Version 1.6.0 [message #646481 is a reply to message #645503]
||Fri, 24 December 2010 14:16
| Gunnar Wagenknecht
Registered: July 2009
Am 17.12.2010 15:18, schrieb Chris:
> My Plugin depends on org.slf4j.api_1.6.1 an provides the Class "org.slf4j.impl.StaticLoggerBinder". Eclipse detects an a validation problem :
> "Missing Constraint: Eclipse-GenericRequire:org.slf4j.impl.StaticLoggerBinder: (&(version>=1.6.0)(!(version>=1.7.0)))".
> How can i fix this Problem ?
Sorry for the late reply but I haven't seen the message until just now.
For a detailed explanation of the bundles please have a look at the
README in CVS.
http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.orbit/ org.slf4j.api/readme-bundles.txt?view=co&root=Tools_Proj ect&pathrev=v1_6_1
Basically, if you want to provide your own SLF4J implementation you need
to create a fragement to slf4j.api bundle. In this fragment you also
need to specify an additional manifest header. This ensures that logging
is actually possible at runtime.
The limitation with the Eclipse-GenericRequire/GenericCapability header
was put in place in order to fix an issue with SLF4J 1.5.x in Helios.
Basically SLF4J was failing horribly when no implementation was around.
They changed it in 1.6. Thus, we might be able to remove that again.
Feel free to open a bug in order to request that removal.
Powered by FUDForum
. Page generated in 0.01801 seconds