package tribunal.tool;


import java.text.SimpleDateFormat;
import java.util.Date;

public class Logger {

    String packageName;

    public Logger(String packageName){
        this.packageName = packageName;
    }

    public void print(String message){
        System.out.print(StringColor.RESET + message);
    }

    public void println(String message){
        System.out.println(StringColor.RESET + message);
    }

    public void debug(String message){
        this.debug(message, "");
    }

    public void debug(String message, String color){
        SimpleDateFormat d = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
        String date = d.format(new Date());
        System.out.print(color + "[" + date + "] <" + packageName + "> " + message);
    }

    public void debugln(String message){
        this.debugln(message, "");
    }

    public void debugln(String message, String color){
        SimpleDateFormat d = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
        String date = d.format(new Date());
        System.out.println(color + "[" + date + "] <" + packageName + "> " + message);
    }

    public void reset(){
        this.print(StringColor.RESET);
    }

    public void error(String message, Exception e){
        this.debugln(message, StringColor.RED);
        this.debug("", StringColor.RED);
        e.printStackTrace();
    }

    public void error(Exception e){
        this.debug("", StringColor.RED);
        e.printStackTrace();
    }

}

@@ -162,16 +162,17 @@
 ageName)
+ 
 %7B%0A      
@@ -204,32 +204,33 @@
 ageName;%0A    %7D%0A%0A
+%0A
     public void 
@@ -242,32 +242,33 @@
 (String message)
+ 
 %7B%0A        System
@@ -307,32 +307,137 @@
 essage);%0A    %7D%0A%0A
+    public void print(String message, String color) %7B%0A        System.out.print(color + message);%0A    %7D%0A%0A%0A
     public void 
@@ -451,32 +451,33 @@
 (String message)
+ 
 %7B%0A        System
@@ -518,32 +518,141 @@
 essage);%0A    %7D%0A%0A
+    public void println(String message, String color) %7B%0A        System.out.println(color + message);%0A    %7D%0A%0A%0A
     public void 
@@ -664,32 +664,33 @@
 (String message)
+ 
 %7B%0A        this.d
@@ -695,34 +695,36 @@
 .debug(message, 
-%22%22
+null
 );%0A    %7D%0A%0A    pu
@@ -760,32 +760,33 @@
 e, String color)
+ 
 %7B%0A        Simple
@@ -977,32 +977,33 @@
 essage);%0A    %7D%0A%0A
+%0A
     public void 
@@ -1025,16 +1025,17 @@
 message)
+ 
 %7B%0A      
@@ -1058,18 +1058,20 @@
 essage, 
-%22%22
+null
 );%0A    %7D
@@ -1125,16 +1125,17 @@
 g color)
+ 
 %7B%0A      
@@ -1367,16 +1367,17 @@
  reset()
+ 
 %7B%0A      
@@ -1458,32 +1458,33 @@
 ge, Exception e)
+ 
 %7B%0A        this.d
@@ -1628,16 +1628,17 @@
 ption e)
+ 
 %7B%0A      

Fix color management