public ConsolePanel(MyWebApp mywebapp) { super(mywebapp); Widget divLogger = Log.getLogger(DivLogger.class).getWidget(); add(divLogger); // ADD A TEXT TO APPEND TO }
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"); } }