APISonar


com.google.gwt.dev.util.log.AbstractTreeLogger.log

> com > google > gwt > dev > util > log > AbstractTreeLogger > log
com APIs google APIs gwt APIs dev APIs util APIs log APIs AbstractTreeLogger APIs log APIs

Example 1
private final AbstractTreeLogger logger;

  public void hyperlinkUpdate(HyperlinkEvent event) {
    EventType eventType = event.getEventType();
    if (eventType == HyperlinkEvent.EventType.ACTIVATED) {
      URL url = event.getURL();
      // TODO(jat): how best to display the URL?  We could either figure out
      // how to run the user's browser, create a mini-browser in Swing, or just
      // re-use the details pane as we do here, but this is rather poor.
      try {
        details.setPage(url);
      } catch (IOException e) {
        logger.log(TreeLogger.ERROR, "Unable to follow link to " + url, e);
      }
    }
  }
Example 2
private boolean run(AbstractTreeLogger logger) {
    try {
      logger.setMaxDetail(logLevel);

      ModuleDef moduleDef = ModuleDefLoader.loadFromClassPath(logger,
          moduleName);
      distill(logger, moduleDef);
      return true;
    } catch (UnableToCompleteException e) {
      // We intentionally don't pass in the exception here since the real
      // cause has been logged.
      logger.log(TreeLogger.ERROR, "Build failed", null);
      return false;
    }
  }