Why does SuperDevMode only provide LogLevel SEVERE?

I am using GWT 2.7 and want to provide INFO and WARNUNG level logging in my application. In my gwt.xml file, I have:

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

It works fine in Dev mode, but in SuperDevMode I only log the log level SEVERE.

Why does SuperDevMode only provide LogLevel SEVERE?

+1
java javascript html logging gwt
Feb 22 '15 at 16:10
source share
2 answers

I just checked one of my applications (which uses GXT), and there I see a log message:

enter image description here

I use these lines inside the module descriptor:

  <!-- values are: severe, warning, info, config, fine, finer, finest --> <set-property name="gwt.logging.logLevel" value="INFO"/> <set-property name="gwt.logging.enabled" value="TRUE" /> <!-- Write messages to browser consoles and to the jvm and dev mode --> <!-- Note that these are the defaults, so we don't actually need to list them --> <set-property name="gwt.logging.consoleHandler" value="ENABLED"/> <set-property name="gwt.logging.developmentModeHandler" value="ENABLED"/> <set-property name="gwt.logging.systemHandler" value="ENABLED"/> <!-- Leave RPC logging disabled, as we aren't setting that up in this example --> <set-property name="gwt.logging.simpleRemoteHandler" value="DISABLED"/> <!-- Ask GXT to log all internal details --> <set-property name="gxt.logging.enabled" value="true"/> 

and add this code to my host:

 private static final Logger logger = logger.getLogger(ShellPresenter.class.getName()); logger.log(Level.INFO, "Starting module Hermes"); 

I did not take the time to find out which of the configurations allows logging, and whether it is related to GXT.

And some more information:

groups.google.com/forum/#!topic/google-web-toolkit/BRZNt1_qEjg

+2
Feb 22 '15 at 17:09
source share

To change the log level in SDM, add this parameter to the command line at startup:

 -logLevel (ERROR|WARN|INFO|TRACE|DEBUG|SPAM|ALL) 
+1
Feb 23 '15 at 6:25
source share



All Articles