Friday, September 27, 2013

Re: Client Logging Question

The logging example comes with the GWT SDK: https://gwt.googlesource.com/gwt/+/master/samples/
If you use Eclipse and the GWT update site the SDK should be installed in eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.5.1/gwt-2.5.1

If you want runtime log settings you must keep logging enabled with a reasonable default log level while compiling your app. If needed you can log more details by setting the root logger's log level through a URL parameter, e.g. "&logLevel=FINE"

Honestly I have no idea if you can set the log level per logger or only for the root logger. Something like logging.properties isn't possible as everything gets compiled to JS and I guess you don't want the browser to download such a runtime configuration file every now and then because you could have updated that file.

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment