[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.

By: rmichela <deltahat@gmail.com>
This commit is contained in:
Bukkit/Spigot
2011-12-15 00:31:13 -05:00
parent 81c2625a0e
commit c02d8155ad
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.");
}