GWT Logger: no control over debug output?

I have the following in the client.gwt.xml file:

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.1//EN" "http://gwtproject.org/doctype/2.7.0/gwt-module.dtd"> <module rename-to='client'> <inherits name="com.mz.client.app" /> <source path="client"/> <inherits name="com.google.gwt.logging.Logging"/> <set-property name="gwt.logging.logLevel" value="FINER"/> <set-property name="gwt.logging.enabled" value="TRUE"/> <set-property name="gwt.logging.consoleHandler" value="ENABLED"/> </module> 

and I am trying to register the following:

  LOGGER.info("INFO"); LOGGER.fine("FINE"); LOGGER.warning("WARNING"); LOGGER.severe("SEVERE"); 

but the only thing that appears in my firebug console is the SEVERE message:

 Mon Sep 07 13:44:09 GMT+200 2015 com.mz.client.App SEVERE: SEVERE 

Why am I not receiving other log messages?




I already installed java.util.logging.ConsoleHandler.level in logging.properties in FINE :

 # Limit the message that are printed on the console to INFO and above. java.util.logging.ConsoleHandler.level = FINE java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter 



Edit:

Now it works even without one of these lines

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

I deleted these lines, cleaned up my project and started the Apache server, and for some magic reason, I get debug output.

Change

 <set-property name="gwt.logging.logLevel" value="FINER"/> 

to

 <set-property name="gwt.logging.logLevel" value="INFO"/> 

does not change the output. I receive all messages until FINER . Customization

 <set-property name="gwt.logging.enabled" value="FALSE"/> 

now does not remove debug output. Still getting everything.

I want to control my debug output.

+6
java logging gwt
Sep 07 '15 at 11:49
source share
1 answer

Add this to your module.gwt.xml :

 <set-property name="gwt.logging.enabled" value="TRUE" /> 

enter image description here

+2
Dec 15 '15 at 15:39
source share



All Articles