Logging not working anymore in GWT 2.7.0 RC

1,057 views
Skip to first unread message

Jan Thewes

unread,
Nov 20, 2014, 4:15:16 AM11/20/14
to google-web-tool...@googlegroups.com
Hey guys,

we've a problem with logging since testing GWT 2.7.
We're using java.util.Logger() and with 2.7 any message trying to be logged with WARN or lower doesn't end up in the browser console.

What I found out is that my Logger.info(String message) call is thrown away by the GWT compiler?
Why does this happen?

What do I have to do to  get the old behavior?

Cheers,
Jan

Andrei Korzhevskii

unread,
Nov 20, 2014, 6:52:37 AM11/20/14
to google-web-tool...@googlegroups.com
GWT 2.7 changed property value "gwt.logging.enabled" from "TRUE" to "SEVERE" (in Logging.gwt.xml) so by default app logs errors only.
To get back to pre-2.7 logging behavior, set this property to "TRUE" or "WARNING" (if you want to log warnings and errors).

Mohammed

unread,
Nov 20, 2014, 7:01:07 AM11/20/14
to google-web-tool...@googlegroups.com
see below,
  • GWT apps that inherit the com.google.gwt.logging.Logging module have different default behavior for messages logged using the java.util.logging package. The new default is to log messages at level SEVERE and above to the browser's console. PopupLogHandler and SystemHandler are no longer enabled by default.

peter...@freshcode.biz

unread,
Jan 6, 2015, 10:54:07 PM1/6/15
to google-web-tool...@googlegroups.com
FWIW, I added the following properties to my module Xxx.gwt.xml config to get old logging back...

<set-property name="gwt.logging.enabled" value="TRUE"/>
<set-property name="gwt.logging.consoleHandler" value="ENABLED"/>
<set-property name="gwt.logging.logLevel" value="INFO"/>


This is in addition to inheriting the com.google.gwt.logging.Logging module.
Reply all
Reply to author
Forward
0 new messages