// popup & firebug must be disabled using Saxonce.gwt.xml and enabled
// below - if required
if (gHandler.isSupported()) {
mainLogger.addHandler(gHandler);
gHandler.publish(record);
} else if (!SaxonceApi.isLogHandlerExternal()) {
HasWidgets loggingWidget = new LoggingPopup();
HasWidgetsLogHandler hw = new HasWidgetsLogHandler(loggingWidget);
mainLogger.addHandler(hw);
hw.publish(record);