@@ -0,0 +1,887 @@
+import java.io.BufferedWriter;%0Aimport java.io.FileWriter;%0Aimport java.io.IOException;%0Aimport java.io.PrintWriter;%0Aimport java.text.SimpleDateFormat;%0Aimport java.util.Date;%0Aimport javax.swing.JFrame;%0A%0Apublic class Logger %7B%0A%09public boolean error = false;%0A%09public static void main(String args%5B%5D)%7B%0A%09%09Gui g = new Gui();%0A%09%09g.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);%0A%09%09g.setSize(450, 125);%0A%09%09g.setVisible(true);%0A%09%7D%0A%09public void logEntry(String dir, String name, String txt)%7B%0A%09%09try(PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(dir + %22%5C%5C%22 + name + %22.txt%22, true)))) %7B%0A%09%09%09error = false;%0A%09%09%09out.println(createTime() + %22%7C %22 + txt);%0A%09%09%7Dcatch (IOException e) %7B%0A%09%09%09error = true;%0A%09%09%09System.out.println(%22error%22);%0A%09%09%7D%0A%09%7D%0A%09public String createTime()%7B%0A%09%09Date date = new Date();%0A%09%09SimpleDateFormat ft = new SimpleDateFormat(%22yyyy.MM.dd HH:mm:ss%22);%0A%09%09return ft.format(date);%0A%09%7D%0A%7D%0A

Create Logger.java