Logging in GWT

282 views
Skip to first unread message

BM

unread,
Sep 19, 2012, 12:34:44 PM9/19/12
to google-we...@googlegroups.com
I know GWT document says to inherit "com.google.gwt.logging.Logging". Does anyone have any suggestion on which is a standards or best practices or trusted third party JARs to use for logging GWT client side code? Any help is much appreciated.


gpike

unread,
Sep 23, 2012, 11:14:05 PM9/23/12
to google-we...@googlegroups.com
I use the built in GWT logging. It works for us, and we can use the remote logging so that info can be included in the server log in production. Your classes use java logging classes. Add the import and configure the loggers you want in the module file something similar to:

<inherits name="com.google.gwt.logging.Logging" />
    
    <set-property name="gwt.logging.firebugHandler" value="ENABLED" />
<set-property name="gwt.logging.enabled" value="TRUE"/> 
<set-property name="gwt.logging.logLevel" value="FINE"/>
<set-property name="gwt.logging.consoleHandler" value="ENABLED" />
<set-property name="gwt.logging.developmentModeHandler" value="ENABLED" />
<set-property name="gwt.logging.popupHandler" value="DISABLED" />
<set-property name="gwt.logging.systemHandler" value="ENABLED" />
<set-property name="gwt.logging.simpleRemoteHandler" value="ENABLED" />

If you use remote remote logging make sure to add the servlet to your web.xml.

Thanks,

Gordon Pike

Leung

unread,
Jun 22, 2013, 7:02:37 AM6/22/13
to google-we...@googlegroups.com
Hi,

Which servlet do I need to use and put on web.xml?

Thanks


From: gpike <gop...@gmail.com>
To: google-we...@googlegroups.com
Sent: Sunday, September 23, 2012 8:14 PM
Subject: Re: Logging in GWT

I use the built in GWT logging. It works for us, and we can use the remote logging so that info can be included in the server log in production. Your classes use java logging classes. Add the import and configure the loggers you want in the module file something similar to:

<inherits name="com.google.gwt.logging.Logging" />
    
    <set-property name="gwt.logging.firebugHandler" value="ENABLED" />
<set-property name="gwt.logging.enabled" value="TRUE"/> 
<set-property name="gwt.logging.logLevel" value="FINE"/>
<set-property name="gwt.logging.consoleHandler" value="ENABLED" />
<set-property name="gwt.logging.developmentModeHandler" value="ENABLED" />
<set-property name="gwt.logging.popupHandler" value="DISABLED" />
<set-property name="gwt.logging.systemHandler" value="ENABLED" />
<set-property name="gwt.logging.simpleRemoteHandler" value="ENABLED" />

If you use remote remote logging make sure to add the servlet to your web.xml.

Thanks,

Gordon Pike


On Wednesday, September 19, 2012 10:34:44 AM UTC-6, BM wrote:
I know GWT document says to inherit "com.google.gwt.logging. Logging". Does anyone have any suggestion on which is a standards or best practices or trusted third party JARs to use for logging GWT client side code? Any help is much appreciated.


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/5oOX5g-fdmoJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


Reply all
Reply to author
Forward
0 new messages