Esempio n. 1
0
  public ConsolePanel(MyWebApp mywebapp) {
    super(mywebapp);
    Widget divLogger = Log.getLogger(DivLogger.class).getWidget();
    add(divLogger);

    // ADD A TEXT TO APPEND TO
  }
Esempio n. 2
0
  public void init() {
    GWT.log("consolePanel init");
    if (Log.isLoggingEnabled()) {
      final DivLogger divLogger = Log.getLogger(DivLogger.class);
      GWT.log("logging enabled");

      add(divLogger.getWidget());
    } else {
      GWT.log("logging NOT enabled");
    }
  }