/** * Writes a log message to the monitor. * <p> * If no monitor is available, the <tt>async</tt> logger will be used. * * @param message the message to log * @param args the parameters used to format the message (see {@link Strings#apply(String, Object...)}) */ public void log(String message, Object... args) { if (adapter != null) { adapter.log(Strings.apply(message, args)); } else { Tasks.LOG.INFO(getSystemString() + ": " + Strings.apply(message, args)); } }