Hi,
in the META-INF/MANIFEST.MF of your bundle, you should have:
- org.slf4j*;resolution:=optional in the Import-Package
In your code, if you use:
LOGGER.info("My stuff");
you should be able to see "My stuff" in data/log/karaf.log.
Can you check that ?
Regards
JB
On 06/09/2014 07:41 PM, lionceau wrote:
Hi ,
When i try to do this using eclipse , my eclipse don't know : import
org.slf4j.Logger;
import org.slf4j.LoggerFactory;
then i import slf4j-api-1.7.7.jar from
http://mvnrepository.com/artifact/org.slf4j/slf4j-api
<http://mvnrepository.com/artifact/org.slf4j/slf4j-api>
And after that nothing run, why ? What's going on ?
Thank you for your fast answer JB
--
View this message in context:
http://karaf.922171.n3.nabble.com/logging-and-karaf-how-to-do-it-tp4033438p4033440.html
Sent from the Karaf - User mailing list archive at Nabble.com.
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com