|
|
|
@ -34,7 +34,7 @@ public class Logger {
|
|
|
|
|
* @param text Text to log
|
|
|
|
|
*/
|
|
|
|
|
public void write(String text, LogLevel logLevel) {
|
|
|
|
|
String colorize = "\u001B[0";
|
|
|
|
|
String colorize = "\u001B[0m";
|
|
|
|
|
String msg = "[" + new Timestamp(System.currentTimeMillis()) + "] " + text + "\n";
|
|
|
|
|
String level = null;
|
|
|
|
|
switch (logLevel) {
|
|
|
|
@ -55,6 +55,7 @@ public class Logger {
|
|
|
|
|
break;
|
|
|
|
|
case Debug:
|
|
|
|
|
level = "[Debug]";
|
|
|
|
|
colorize = "\u001B[36m"; // CYAN
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
System.err.println("Error: incorrect logLevel");
|
|
|
|
|