mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Fix for issue #25 - fixed logger
This commit is contained in:
1 parent
f6ddb4c9b8
commit
c1677c0207
3 files changed
+28
-28
No files matched your search
@@ -13,14 +13,20 @@ public class FileFormatter extends Formatter {
|
||||
|
||||
@Override
|
||||
public String format(LogRecord record) {
|
||||
StringBuilder output = new StringBuilder()
|
||||
.append("[")
|
||||
.append(record.getLevel()).append('|')
|
||||
.append(format.format(new Date(record.getMillis())))
|
||||
.append("]: ")
|
||||
.append(record.getMessage()).append(' ')
|
||||
.append(lineSep);
|
||||
return output.toString();
|
||||
if(record.getMessage().startsWith("[AntiCheat]"))
|
||||
{
|
||||
StringBuilder output = new StringBuilder()
|
||||
.append("[")
|
||||
.append(record.getLevel()).append('|')
|
||||
.append(format.format(new Date(record.getMillis())))
|
||||
.append("]: ")
|
||||
.append(record.getMessage()).append(' ')
|
||||
.append(lineSep);
|
||||
return output.toString();
|
||||
}
|
||||
else
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user