Just call our own logger, screw jdk logger parenting

This commit is contained in:
md_5 2013-09-03 11:36:00 +10:00
parent 68f11e46f7
commit 00a0277a13

View File

@ -13,13 +13,12 @@ public class PluginLogger extends Logger
{
super( plugin.getClass().getCanonicalName(), null );
pluginName = "[" + plugin.getDescription().getName() + "] ";
setParent( ProxyServer.getInstance().getLogger() );
}
@Override
public void log(LogRecord logRecord)
{
logRecord.setMessage( pluginName + logRecord.getMessage() );
super.log( logRecord );
ProxyServer.getInstance().getLogger().log( logRecord );
}
}