import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceRegistration;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
/**
* @author Tuukka Lehtonen
*/
public class WorkbenchShutdownServiceImpl implements WorkbenchShutdownService {
+ private static final Logger LOGGER = LoggerFactory.getLogger(WorkbenchShutdownServiceImpl.class);
private static ServiceRegistration service = null;
private final List<Runnable> hooks = new ArrayList<Runnable>();
}
protected void handleException(Object source, Throwable t) {
- System.err.println(getClass().getSimpleName() + ": workbench shutdown hook " + source + " caused unexpected exception:");
- t.printStackTrace();
+ LOGGER.error(getClass().getSimpleName() + ": workbench shutdown hook " + source + " caused unexpected exception:", t);
}
}