[Bleeding] Added Plugin.getLogger() which returns a java.util.Logger that prefixes messages with the plugin name.

Note: the server when enabling or disabling a plugin will now by default log this.
This commit is contained in:
rmichela
2011-12-15 00:31:13 -05:00
committed by Erik Broes
parent cd30d470e7
commit 05173f2200
5 changed files with 67 additions and 3 deletions

View File

@@ -12,6 +12,7 @@ import org.bukkit.generator.ChunkGenerator;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.PluginDescriptionFile;
import org.bukkit.plugin.PluginLoader;
import org.bukkit.plugin.PluginLogger;
import org.bukkit.util.config.Configuration;
public class TestPlugin implements Plugin {
@@ -57,6 +58,10 @@ public class TestPlugin implements Plugin {
throw new UnsupportedOperationException("Not supported.");
}
public PluginLogger getLogger() {
throw new UnsupportedOperationException("Not supported.");
}
public PluginLoader getPluginLoader() {
throw new UnsupportedOperationException("Not supported.");
}