public static void flush(String f) { PrintStream tmpStream = outStreams.get(f); if (tmpStream == null) { Logger.err("Failed to flush " + f + " (No such stream)"); } else { tmpStream.flush(); } }
public static synchronized void log(String f, Object o) { String s = prefix() + o.toString(); try { PrintStream tmpStream = outStreams.get(f); if (tmpStream == null) { tmpStream = newStream(f); } tmpStream.println(s); } catch (IOException ex) { Logger.err("Failed to log to " + f + ", msg='" + s + "'"); } }
public final void run() { Logger.log("Unmuting host " + plr.getHost()); World.getWorld().removeTempMute(plr.getHost()); }