public static void addRequiredLogHanders(LogRecord record) {
jsLogHandler = new JsLogHandler();
mainLogger.addHandler(jsLogHandler);
jsLogHandler.publish(record);
GenericLogHandler gHandler = new GenericLogHandler();
// 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);