mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 14:38:45 +00:00
Improved logging, fixes issue #23
This commit is contained in:
1 parent
3a0b7369c9
commit
e3f92436ea
9 files changed
+71
-20
No files matched your search
@@ -0,0 +1,20 @@
|
||||
package net.h31ix.anticheat.util;
|
||||
|
||||
import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.logging.Formatter;
|
||||
import java.util.logging.LogRecord;
|
||||
|
||||
public class ConsoleFormatter extends Formatter {
|
||||
|
||||
private static final DateFormat format = new SimpleDateFormat("h:mm:ss");
|
||||
private static final String lineSep = System.getProperty("line.separator");
|
||||
|
||||
@Override
|
||||
public String format(LogRecord record) {
|
||||
StringBuilder output = new StringBuilder()
|
||||
.append(record.getMessage()).append(' ');
|
||||
return output.toString();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user