import org.osgi.framework.Bundle;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
public class Activator implements BundleActivator {
+ private static final Logger LOGGER = LoggerFactory.getLogger(Activator.class);
private BundleContext context;
private static Activator instance;
}
public static void logError(String description, Exception e) {
- System.err.println(description);
+ LOGGER.error(description);
if(e != null)
e.printStackTrace();
Bundle bundle = getInstance().getContext().getBundle();