Just call our own logger, screw jdk logger parenting
This commit is contained in:
parent
68f11e46f7
commit
00a0277a13
@ -13,13 +13,12 @@ public class PluginLogger extends Logger
|
|||||||
{
|
{
|
||||||
super( plugin.getClass().getCanonicalName(), null );
|
super( plugin.getClass().getCanonicalName(), null );
|
||||||
pluginName = "[" + plugin.getDescription().getName() + "] ";
|
pluginName = "[" + plugin.getDescription().getName() + "] ";
|
||||||
setParent( ProxyServer.getInstance().getLogger() );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void log(LogRecord logRecord)
|
public void log(LogRecord logRecord)
|
||||||
{
|
{
|
||||||
logRecord.setMessage( pluginName + logRecord.getMessage() );
|
logRecord.setMessage( pluginName + logRecord.getMessage() );
|
||||||
super.log( logRecord );
|
ProxyServer.getInstance().getLogger().log( logRecord );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user