I remember reading a thread here a while back that said that each plugin has their own logger. I can't seem to find such a thread or how to do such a thing. Does anybody know? Edit: found le thread. http://forums.bukkit.org/threads/how-to-make-your-plugin-better.77899/
Each plugin can obtain a reference to their logger with the getLogger method. the method must be called inside onEnable or later pretty much like all the methods in JavaPlugin
like so? Code: public class Village extends JavaPlugin { public static Logger log; @Override public void onEnable() { log = getLogger(); } }
I also found the thread that I was talking about: http://forums.bukkit.org/threads/how-to-make-your-plugin-better.77899/
Personally like all the other values in JavaPlugin, I would try to minimize the scope they are loose in. But in the case of the logger it is not quite as crucial.