I have enabled GWT logging with ConsoleHandler as shown below.
<inherits name="com.google.gwt.logging.Logging"/>
<set-property name="gwt.logging.logLevel" value="INFO"/>
<set-property name="gwt.logging.enabled" value="TRUE"/>
<set-property name="gwt.logging.consoleHandler" value="ENABLED"/>
Because of this I also see a logging window appearing on application page and logs in console of the browser as shown here which is obvious.
How do I disable the window appearing on my application and have only browser console on in production mode?
Is it that we have to disable the ConsoleHandler? Or may be I have to use SimpleRemoteLogHandler when in production mode?
There is also a FirebugLogHandler but limited to Firebug.
When you
<inherits name="com.google.gwt.logging.Logging"/>most log handlers are enabled already, including thepopupHandlerwhich is responsible for the window popping up.You’ll want to disable all those you don’t want/need rather than enable the one you want.
See https://code.google.com/p/google-web-toolkit/source/browse/tags/2.5.0/user/src/com/google/gwt/logging/LoggingDisabled.gwt.xml#132
As a side note,
gwt.logging.logLevelalready defaults toINFOandgwt.logging.enabledis set toTRUEalready incom.google.gwt.logging.Logging.