// 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);
}
}