/** * Writes an exception to this writer. * The exception level is "information". */ public void info(Throwable ex) { this.info(LocalizedStrings.EMPTY, ex); } /**
logger.info(Banner.getString(null)); && !Boolean.getBoolean(InternalLocator.INHIBIT_DM_BANNER)) { logger.info(Banner.getString(null)); logger.warning(firstMsg); } else { logger.info(firstMsg); logger.info(LocalizedStrings.InternalDistributedSystem_RUNNING_IN_LOCAL_MODE_SINCE_MCASTPORT_WAS_0_AND_LOCATORS_WAS_EMPTY);
/** * Writes both a message and exception to this writer. * The message level is "info". * @since 6.0 */ public void info(StringId msgID, Throwable ex) { info(msgID, null, ex); } /**
/** * Writes both a message and exception to this writer. * The message level is "info". * @since 6.0 */ public void info(StringId msgID) { info(msgID, null, null); } /**
/** * Writes a message to this writer. * The message level is "information". */ public void info(String msg) { this.info(msg, null); } /**
/** * Writes both a message and exception to this writer. * The message level is "info". * @since 6.0 */ public void info(StringId msgID, Object[] params) { info(msgID, params, null); } /**
/** * Writes both a message and exception to this writer. * The message level is "info". * @since 6.0 */ public void info(StringId msgID, Object param) { info(msgID, param, null); } /**
@Override public void run() { while (!done.get()) { try { Thread.sleep(500); } catch (InterruptedException e) { return; } if (!done.get() && targetThread.isAlive()) { StringBuffer sb = new StringBuffer(500); if (toStdout) { sb.append("[trace ").append(getTimeStamp()).append("] "); } StackTraceElement[] els = targetThread.getStackTrace(); sb.append("Stack trace for '").append(targetThread.toString()).append("'\n"); if (els.length > 0) { for (int i=0; i<els.length; i++) { sb.append("\tat ").append(els[i].toString()).append("\n"); } } else { sb.append(" no stack\n"); } if (toStdout) { System.out.println(sb.toString()); } else { info(LocalizedStrings.DEBUG, sb.toString()); } } } } };