logstream = new PrintStream(new Socket(InetAddress.getByName(host), port).getOutputStream());
}
+ private static Hashtable threadAnnotations = new Hashtable();
+ public static void setThreadAnnotation(String s) { threadAnnotations.put(Thread.currentThread(), s); }
+
/** true iff nothing has yet been logged */
public static boolean firstMessage = true;
lastDate = d;
}
+ String annot = (String)threadAnnotations.get(Thread.currentThread());
+ if (annot != null) classname += annot;
if (message instanceof Throwable) {
if (level < ERROR) level = WARN;