Memo-migrated‎ > ‎

Logging in GWT

posted May 15, 2013, 1:45 PM by Teng-Yok Lee   [ updated Jan 3, 2021, 12:30 AM ]
Here is my procedure to enable GWT logging to Firebug (also worked for Chrome) without the popup panel.

  1. Developer's Guide - Logging,
  2. GWT logging setup,

Add the following line to .gwt.xml
<inherits name=""/>

To enable the logging to Firebug, add the following lines:
<set-property name="gwt.logging.firebugHandler" value="ENABLED" />

To disable the popup panel:
<set-property name="gwt.logging.popupHandler" value="DISABLED" />
Then in the Java code, we just write the code as follows:
import java.util.logging.Level; import java.util.logging.Logger;


Logger logger = Logger.getLogger("DescribeRun");

logger.log(Level.SEVERE, "this message should get logged");