@Override @SuppressIsSafeHtmlCastCheck public void publish(LogRecord record) { if (!isLoggable(record)) { return; } Formatter formatter = getFormatter(); String msg = formatter.format(record); // We want to make sure that unescaped messages are not output as HTML to // the window and the HtmlLogFormatter ensures this. If you want to write a // new formatter, subclass HtmlLogFormatter and override the getHtmlPrefix // and getHtmlSuffix methods. if (formatter instanceof HtmlLogFormatter) { widgetContainer.add(new HTML(msg)); } else { widgetContainer.add(new Label(msg)); } } }
@Override public void publish(LogRecord record) { if (!isLoggable(record)) { return; } Formatter formatter = getFormatter(); String msg = formatter.format(record); // We want to make sure that unescaped messages are not output as HTML to // the window and the HtmlLogFormatter ensures this. If you want to write a // new formatter, subclass HtmlLogFormatter and override the getHtmlPrefix // and getHtmlSuffix methods. if (formatter instanceof HtmlLogFormatter) { widgetContainer.add(new HTML(msg)); } else { widgetContainer.add(new Label(msg)); } } }
@Override public void publish(LogRecord record) { if (!isLoggable(record)) { return; } Formatter formatter = getFormatter(); String msg = formatter.format(record); // We want to make sure that unescaped messages are not output as HTML to // the window and the HtmlLogFormatter ensures this. If you want to write a // new formatter, subclass HtmlLogFormatter and override the getHtmlPrefix // and getHtmlSuffix methods. if (formatter instanceof HtmlLogFormatter) { widgetContainer.add(new HTML(msg)); } else { widgetContainer.add(new Label(msg)); } } }