import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;


public class Logger {
	private String filename;

	Logger(String filename) {
		this.filename = filename;
	}

	public void append(String line) {
		try(PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(filename, true)))) {
		    out.println(line);
		}
		catch (IOException e) {
			// fail
		}
	}
}

@@ -140,31 +140,31 @@
 private 
-String filename
+PrintWriter out
 ;%0A%0A%09Logg
@@ -192,236 +192,221 @@
 %0A%09%09t
-his.filename = filename;%0A%09%7D%0A%0A%09public void append(String line) %7B%0A%09%09try(PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(filename, true)))) %7B%0A%09%09    out.println(line);%0A%09%09%7D%0A%09%09catch (IOException e) %7B%0A%09%09%09// fail%0A%09%09%7D
+ry %7B%0A%09%09%09out = new PrintWriter(new BufferedWriter(new FileWriter(filename, true)));%0A%09%09%7D catch (IOException e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%7D%0A%0A%09public void append(String line) %7B%0A%09%09out.println(line);%0A%09%09out.flush();
 %0A%09%7D%0A

Fix logger for java 1.6