rcp(插件开发) 怎么使用插件下的Log日志

rcp(插件开发) 如何使用插件下的Log日志

其实很简单

  ILog log = Plugin.getDefault().getLog();
  Status status = new Status(IStatus.ERROR, Plugin.getDefault().getDescriptor()
    .getUniqueIdentifier(), IStatus.ERROR, msg + "\n", null);
  log.log(status);

这样日志会记录在workspace/.metadata/.log中~!!