List of usage examples for java.util.logging LogRecord getLoggerName
public String getLoggerName()
From source file:org.ebayopensource.turmeric.eclipse.core.logging.PluginLogDelegateHandler.java
@Override public void publish(final LogRecord record) { if (record == null || StringUtils.isBlank(record.getMessage())) return;//from w ww.j a va 2s.c o m final int level = level(record.getLevel()); if (shouldLogRawMessage(record)) { log(level, record.getLoggerName(), record.getMessage(), null); } else { log(level, record.getLoggerName(), StringUtils.replace(formatter.format(record), "\n", "\n "), record.getThrown()); } }
From source file:org.ebayopensource.turmeric.runtime.tests.common.jetty.SimpleConsoleHandler.java
@Override public void publish(LogRecord record) { StringBuilder buf = new StringBuilder(); buf.append("[").append(record.getLevel().getName()); buf.append("] ").append(record.getLoggerName()); buf.append(" (").append(record.getSourceMethodName()); buf.append("): ").append(record.getMessage()); System.out.println(buf.toString()); if (record.getThrown() != null) { record.getThrown().printStackTrace(System.out); }//w w w.j av a 2s .co m }