mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 11:05:40 +00:00
Merge branch 'FMLLogFormatter' of https://github.com/donington/FML into gh-updates
This commit is contained in:
commit
94282c5575
1 file changed
+8
-22
@@ -22,33 +22,19 @@ final class FMLLogFormatter extends Formatter
|
|||||||
msg.append(this.dateFormat.format(Long.valueOf(record.getMillis())));
|
msg.append(this.dateFormat.format(Long.valueOf(record.getMillis())));
|
||||||
Level lvl = record.getLevel();
|
Level lvl = record.getLevel();
|
||||||
|
|
||||||
if (lvl == Level.FINEST)
|
String name = lvl.getLocalizedName();
|
||||||
|
if ( name == null )
|
||||||
{
|
{
|
||||||
msg.append(" [FINEST] ");
|
name = lvl.getName();
|
||||||
}
|
}
|
||||||
else if (lvl == Level.FINER)
|
|
||||||
|
if ( ( name != null ) && ( name.length() > 0 ) )
|
||||||
{
|
{
|
||||||
msg.append(" [FINER] ");
|
msg.append(" [" + name + "] ");
|
||||||
}
|
}
|
||||||
else if (lvl == Level.FINE)
|
else
|
||||||
{
|
{
|
||||||
msg.append(" [FINE] ");
|
msg.append(" ");
|
||||||
}
|
|
||||||
else if (lvl == Level.INFO)
|
|
||||||
{
|
|
||||||
msg.append(" [INFO] ");
|
|
||||||
}
|
|
||||||
else if (lvl == Level.WARNING)
|
|
||||||
{
|
|
||||||
msg.append(" [WARNING] ");
|
|
||||||
}
|
|
||||||
else if (lvl == Level.SEVERE)
|
|
||||||
{
|
|
||||||
msg.append(" [SEVERE] ");
|
|
||||||
}
|
|
||||||
else if (lvl == Level.SEVERE)
|
|
||||||
{
|
|
||||||
msg.append(" [" + lvl.getLocalizedName() + "] ");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (record.getLoggerName() != null)
|
if (record.getLoggerName() != null)
|
||||||
|
|||||||
Reference in new issue
Block a user