Here you can find the source of log(String method, String message)
public static void log(String method, String message)
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Date; public class Main { private final static SimpleDateFormat simpleDateFomat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); public static void log(String method, String message) { System.out.printf("%s\t%-35s\t%s\n", currentTime(), method, message); }/*from w ww .j a va 2 s .co m*/ private static String currentTime() { return simpleDateFomat.format(new Date()); } }