Пример #1
0
 /**
  * Print a debug message to the console. Pre-pend the message with the current date and the name
  * of the current thread.
  */
 public static void debug(String message) {
   StringBuffer buffer = new StringBuffer();
   buffer.append(new Date(System.currentTimeMillis()));
   buffer.append(" - ["); // $NON-NLS-1$
   buffer.append(Thread.currentThread().getName());
   buffer.append("] "); // $NON-NLS-1$
   buffer.append(message);
   System.out.println(buffer.toString());
 }