예제 #1
0
 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();
   }
 }
예제 #2
0
 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 + "'");
   }
 }
예제 #3
0
 public final void run() {
   Logger.log("Unmuting host " + plr.getHost());
   World.getWorld().removeTempMute(plr.getHost());
 }