Fixing Logger time
This commit is contained in:
parent
ebe7c4bd98
commit
92cbf505e1
2 changed files with 7 additions and 3 deletions
|
|
@ -2,7 +2,9 @@ package discord.data.mining;
|
||||||
|
|
||||||
import net.dv8tion.jda.core.EmbedBuilder;
|
import net.dv8tion.jda.core.EmbedBuilder;
|
||||||
|
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
import java.time.Instant;
|
import java.time.Instant;
|
||||||
|
import java.util.Calendar;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author GregTCLTK
|
* @author GregTCLTK
|
||||||
|
|
@ -14,8 +16,10 @@ import java.time.Instant;
|
||||||
|
|
||||||
public class Logger {
|
public class Logger {
|
||||||
public static void info(String info) {
|
public static void info(String info) {
|
||||||
|
Calendar cal = Calendar.getInstance();
|
||||||
|
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
|
||||||
|
String time = sdf.format(cal.getTime());
|
||||||
Main.manager.get(0).getTextChannelById(Main.ConsoleLog).sendMessage(new EmbedBuilder().setColor(65280).setTimestamp(Instant.now()).setDescription(info).build()).queue();
|
Main.manager.get(0).getTextChannelById(Main.ConsoleLog).sendMessage(new EmbedBuilder().setColor(65280).setTimestamp(Instant.now()).setDescription(info).build()).queue();
|
||||||
System.out.println("[" + Instant.now() + "] " + info);
|
System.out.println("[" + time + "] " + info);
|
||||||
// Zeit wird noch gefixt
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 50 50 50 50 50 112175 114219
|
0 0 0 0 0 0 0 0 0 0 0 0 0 0 50 50 50 50 50 112175 114219 33063 0
|
||||||
Loading…
Add table
Reference in a new issue