public static void log(int level, String message, Throwable e){
plugin.getLog().log(new Status(level, PLUGIN_ID, message, e));
}
public static MessageConsole findConsole(String name) {
MessageConsole myConsole = null;
ConsolePlugin plugin = ConsolePlugin.getDefault();
if (plugin != null){
IConsoleManager conMan = plugin.getConsoleManager();
IConsole[] existing = conMan.getConsoles();
for (int i = 0; i < existing.length; i++)
if (name.equals(existing[i].getName()))
return (MessageConsole) existing[i];
//no console found, so create a new one