According to the documentation I can log to the browser console with
# In your .gwt.xml file
<inherits name="com.google.gwt.logging.Logging"/>
# In your .java file
Logger logger = Logger.getLogger("NameOfYourLogger");
logger.log(Level.SEVERE, "this message should get logged");
But there is some things I don't understand.
- I have to
import java.util.logging.Logger(alsojava.util.logging.Level) otherwise Eclipse complains that itcannot resolve type. Is this normal? Also I don't understand how to set the logging level - according to the doc I can set
<set-property name="gwt.logging.logLevel" value="SEVERE"/>in the gwt.xml file but if I set the level to
FINESTand then log something with levelFINEit doesn't show. However if I log something withLevel.SEVEREit shows up in the console, there is definitely something happening. I'm just not sure about the connections.