Here you can find the source of Log(String filename, String message)
public static void Log(String filename, String message) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.FileWriter; import java.io.IOException; public class Main { public static void Log(String filename, String message) throws IOException { QuickAppend(GetLog(filename), message + LF()); }//from w ww . j a v a 2s.c o m public static void QuickAppend(FileWriter f, String message) throws IOException { f.append(message); f.flush(); } private static FileWriter GetLog(String filename) throws IOException { return new FileWriter(filename, true); } /** * Get the system's line endings * @return */ public static String LF() { return System.getProperty("line.separator"); } }