package com.arinerron.forux.core;

public class Logger {
    public static int PRINT_TO_CONSOLE = 0;
    public static int PRINT_TO_FILE = 1;
    public static int PRINT_TO_CONSOLE_AND_FILE = 2;
    
    private Game game = null;
    private int type = Logger.PRINT_TO_CONSOLE_AND_FILE;
    
    public Logger(Game game) {
        this.game = game;
    }
    
    private void log(Object o) {
        if(this.getLoggerType() % 2 == 0)
            System.out.println(o);
        if(this.getLoggerType() > 0)
            ;// make write to file later
    }
    
    public void log(String type, Object o) {
        log("[" + type.toUpperCase() + "] " + o);
    }
    
    public void info(Object o) {
        log("INFO", o);
    }
    
    public void warn(Object o) {
        log("WARN", o);
    }
    
    public void error(Object o) {
        log("ERROR", o);
    }
    
    public void error(Exception e) {
        log("ERROR", e.getMessage());
        e.printStackTrace();
    }
    
    public void setLoggerType(int type) {
        this.type = type;
    }
    
    public Game getGame() {
        return this.game;
    }
    
    public int getLoggerType() {
        return this.type;
    }
}

@@ -28,16 +28,79 @@
 .core;%0A%0A
+import java.text.SimpleDateFormat;%0Aimport java.util.Calendar;%0A%0A
 public c
@@ -342,16 +342,20 @@
 ND_FILE;
+    
 %0A    %0A  
@@ -656,32 +656,32 @@
 pe, Object o) %7B%0A
-
         log(%22%5B%22 
@@ -681,16 +681,99 @@
 og(%22%5B%22 +
+ new SimpleDateFormat(%22yyyyMMdd_HHmmss%22).format(Calendar.getInstance().getTime()) +
  type.to

Add date and time info