Saturday, September 29, 2012

Documentation of GWT logging (compile out of log levels)

The documentation mentions, that it's possible to make all logging code compile out, but it doesn't mention how to compile out only certain levels.

This is however possible: The property "gwt.logging.enabled" can take the values FALSE, TRUE, SEVERE and WARNING (note: this is separate from the property "gwt.logging.logLevel, which can take ALL, FINEST, FINER, FINE, CONFIG, INFO, WARNING and SEVERE)

When "gwt.logging.enabled" is set to SEVERE or WARNING, then the finer levels will not be compiled into the permutation.

It would be nice if this information were integrated into the documentation. Also, I think it would be a good idea to add at least "INFO" to the allowed values of gwt.logging.enabled.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/joE7tiqkreIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment