Object[] listeners = fileLogging.getListeners().toArray();
for (int i = 0; i < listeners.length; i++) {
if (listeners[i] instanceof PluginFileLoggerAdapater) {
PluginFileLoggerAdapater l = (PluginFileLoggerAdapater) listeners[i];
if (l.listener == listener) {
fileLogging.removeListener(l);
}
}
}
}