Actually format.
This commit is contained in:
parent
627672920c
commit
6333f3bbb6
@ -3,6 +3,7 @@ package net.md_5.bungee;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.PrintWriter;
|
import java.io.PrintWriter;
|
||||||
import java.io.StringWriter;
|
import java.io.StringWriter;
|
||||||
|
import java.text.MessageFormat;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.logging.FileHandler;
|
import java.util.logging.FileHandler;
|
||||||
import java.util.logging.Formatter;
|
import java.util.logging.Formatter;
|
||||||
@ -90,7 +91,7 @@ public class Logger extends java.util.logging.Logger
|
|||||||
formatted.append(" [SEVERE] ");
|
formatted.append(" [SEVERE] ");
|
||||||
}
|
}
|
||||||
|
|
||||||
formatted.append(logrecord.getMessage());
|
formatted.append(MessageFormat.format(logrecord.getMessage(), logrecord.getParameters()));
|
||||||
formatted.append('\n');
|
formatted.append('\n');
|
||||||
Throwable throwable = logrecord.getThrown();
|
Throwable throwable = logrecord.getThrown();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user