APISonar


com.google.gwt.dev.util.log.PrintWriterTreeLogger.log

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

Example 1
private final PrintWriterTreeLogger logger = new PrintWriterTreeLogger();

  public boolean disconnectFromHost() throws IOException {
    logger.log(TreeLogger.DEBUG, "disconnecting channel " + this);
    if (!isConnected()) {
      logger.log(TreeLogger.DEBUG,
          "Disconnecting already disconnected channel " + this);
      return false;
    }
    new QuitMessage(this).send();
    endSession();
    connected = false;
    return true;
  }
Example 2
private final PrintWriterTreeLogger logger = new PrintWriterTreeLogger();

  public void loadJsni(BrowserChannelClient channel, String jsniString) {
    logger.log(TreeLogger.SPAM, "LOAD_JSNI: " + jsniString);
    ScriptResult scriptResult = htmlPage.executeJavaScript(jsniString);
    logger.log(TreeLogger.INFO, "LOAD_JSNI: scriptResult=" + scriptResult);
  }
Example 3
private final PrintWriterTreeLogger logger = new PrintWriterTreeLogger();

  HtmlUnitSessionHandler(Window window, JavaScriptEngine jsEngine) {
    this.window = window;
    logger.setMaxDetail(TreeLogger.ERROR);
    this.jsEngine = jsEngine;
    htmlPage = (HtmlPage) this.window.getWebWindow().getEnclosedPage();
    logger.log(TreeLogger.INFO, "jsEngine = " + jsEngine + ", HtmlPage = "
        + htmlPage);

    jsObjectToRef = new IdentityHashMap<Scriptable, Integer>();
    nextRefId = 1;
    refToJsObject = new HashMap<Integer, Scriptable>();

    // related to JavaObject cache.
    javaObjectCache = new HashMap<Integer, JavaObject>();
  }
Example 4
public static TreeLogger createTestTreeLogger() {
    if (LOG_TO_CONSOLE) {
      PrintWriterTreeLogger treeLogger = new PrintWriterTreeLogger();
      treeLogger.setMaxDetail(TreeLogger.ALL);
      treeLogger.log(TreeLogger.INFO, "=== logger start ===");
      return treeLogger;
    } else {
      return TreeLogger.NULL;
    }
  }