Here you can find the source of log(String msg)
public static void log(String msg)
//package com.java2s; //License from project: Open Source License import java.io.PrintWriter; public class Main { static PrintWriter writer; public static void log(String msg) { writer.println(msg);//from www . j a va2 s. co m writer.flush(); } }