ILog log = WorkFlowActivator.getDefault().getLog();
Status status = new Status(IStatus.ERROR, WorkFlowActivator.getDefault().getDescriptor()
.getUniqueIdentifier(), IStatus.ERROR, msg + "\n", null);
log.log(status);
这样日志会记录在workspace/.metadata/.log中~!!
WorkFlowActivator类是 extends AbstractUIPlugin 类的