Use standard format function to format logs. Addresses BUKKIT-2246
Also fix "excess" Log Levels.
This commit is contained in:
@@ -39,11 +39,11 @@ final class ConsoleLogFormatter extends Formatter {
|
||||
stringbuilder.append(" [WARNING] ");
|
||||
} else if (level == Level.SEVERE) {
|
||||
stringbuilder.append(" [SEVERE] ");
|
||||
} else if (level == Level.SEVERE) {
|
||||
} else { // CraftBukkit
|
||||
stringbuilder.append(" [").append(level.getLocalizedName()).append("] ");
|
||||
}
|
||||
|
||||
stringbuilder.append(logrecord.getMessage());
|
||||
stringbuilder.append(formatMessage(logrecord)); // CraftBukkit
|
||||
stringbuilder.append('\n');
|
||||
Throwable throwable = logrecord.getThrown();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user