List of utility methods to do Log to File
void | log(Level level, String methodName, Object message) Writes a log entry. Object[] args = { methodName, message }; logger.log(level, MessageFormat.format(logEntryTemplate, args)); |
void | log(String message) log Date date = new Date(); DateFormat df = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss"); String reportDate = df.format(date); System.out.println(reportDate + "\t" + message); |
void | log(String message) log log(message, null); |
void | log(String message) log System.out.println(message); |
void | log(String message, Exception e) log log(message, "", e);
|
void | log(String method, String message) log System.out.printf("%s\t%-35s\t%s\n", currentTime(), method, message);
|
void | log(String msg) log Date date = new Date(); System.err.println("[" + DATE_FORMAT.format(date) + "] " + msg); |
void | log(String msg) log if (osType.equals("z/OS")) { System.out.println(timestampFormat.format(new Date()) + ":" + msg); } else System.out.println("[" + timestampFormat.format(new Date()) + "] " + msg); |
void | log(String name, String message) log String date = dateFormat.format(new Date()); System.out.println("[" + date + "]\t" + name + ".java\t - " + message); |
void | log(String tag, T msg) log print(DATE_FORMAT.format(new Date())); print(" "); if (isEmpty(tag)) { println(msg); } else { println(tag + ": " + msg); |