Is there a way to report log messages in a Client-side GWT applications for development purposes (in Standard GWT libraries i.e. No external libraries)?
i.e. like the Logger that can be used to output log messages to catalina.out when developing things for say Tomcat.
Take a look to the gwt-log project. Seems that's you're looking for.
http://code.google.com/p/gwt-log/
Just a quick example..
Add this line in *.gwt.xml file. Its in parent package of your client side source. The top most package..
<inherits name="com.google.gwt.logging.Logging"/>
Add this in .java file, lets say in the onModuleLoad() method
public void onModuleLoad() {
Logger logger = Logger.getLogger("NameOfYourLogger");
logger.log(Level.SEVERE, "this message should get logged");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With