Change the log level of what is written to console

165 views
Skip to first unread message

Константин Милютин

unread,
Jan 20, 2015, 6:46:04 AM1/20/15
to google-web-tool...@googlegroups.com
I've switched to 2.7 and it writes only severe level messages to console by default.
That's ok with me, but I can't change this behaviour. I tried adding the following lines to my module file:

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

But it doesn't change anything, code:

Logger log = Logger.getLogger(Panels.class.getName());
log.severe("Panel got click event");

prints nothing on the console.

Goktug Gokdogan

unread,
Jan 20, 2015, 2:52:03 PM1/20/15
to google-web-toolkit-contributors
There has been a few bug reports so it is very likely there is an issue here, though I didn't have the opportunity to take a look.
Can you reproduce this with a simple app (e.g. SDK's Hello sample app) and file a bug?

--
You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/4a97688d-6bca-420d-9076-7e8a3b710e83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sylvain Cossement

unread,
Feb 19, 2015, 8:38:35 AM2/19/15
to google-web-tool...@googlegroups.com
I have the same problem since 2.7.
There is no way to change the log level.

I tried:
- using the module property <set-property name="gwt.logging.logLevel" value="INFO"/>
- adding &logLevel=INFO on the url
- set logger.setLevel(Level.INFO) directly in the java code

Nothing seem to work.

rk fg

unread,
May 21, 2015, 4:17:54 AM5/21/15
to google-web-tool...@googlegroups.com
Same here. It seems that the only implementation that's used is LoggerImplSevere regardless of the properties set hence the logging level doesn't change anything.

Jens

unread,
May 21, 2015, 4:32:58 AM5/21/15
to google-web-tool...@googlegroups.com

Same here. It seems that the only implementation that's used is LoggerImplSevere regardless of the properties set hence the logging level doesn't change anything.

 Does it work with 2.8 SNAPSHOT? There were quite some fixes regarding logging.

-- J.

rk fg

unread,
May 21, 2015, 4:43:37 AM5/21/15
to google-web-tool...@googlegroups.com
Looks like fixed, thanks!
Reply all
Reply to author
Forward
0 new messages