List of utility methods to do Log Message
void | log(String fmt, Object... args) log try { if (fw == null) { fw = new FileWriter("client.log.txt"); fw.append(String.format("%-4d %s\n", System.currentTimeMillis() % 10000, String.format(fmt, args))); fw.flush(); } catch (IOException e) { throw new RuntimeException(e); ... |
void | log(String line) log try { out.write(line); } catch (Exception e) { e.printStackTrace(); |
void | log(String message) log out.println(message); |
void | log(String message) log log(message, System.out); |
void | log(String message, PrintStream out) log StackTraceElement se = Thread.currentThread().getStackTrace()[2]; out.println("; " + message + " - [" + se.getClassName() + "." + se.getMethodName() + "(): line " + se.getLineNumber() + "]"); |
void | log(String msg) log writer.println(msg); writer.flush(); |
void | LOG(String msg, PrintWriter writer) LOG String content = "<script language=\"JavaScript\">" + "console.log('" + msg + "');" + "</script>\n"; writer.append(content); |
void | logLine(String filePath, String line) log Line if (filePath == null) { String log = (new Date()) + " : " + line + "\n"; System.out.print(log); } else { try { BufferedWriter writer = new BufferedWriter(new FileWriter(filePath, true)); writer.write(line + "\n"); writer.flush(); ... |
void | logMessage(String message) log Message logMessage(Thread.currentThread().hashCode(), message); |
void | LogMsg(PrintStream logger, String msg) Log Msg if (logger != null) { logger.println("Rigor: " + msg); |