while (!isInterrupted ()) { int l = loggers.size(); for (int i=l-1; i>=0; i--) { Logger log = (Logger) loggers.get (i); log.run (); if (log.closed) { loggers.remove (log); loggerMap.remove (log.getKey ()); log.closeFiles ();
while (runner == this  && !isInterrupted ()) { int nloggers = loggers.size(); for (int i=nloggers-1; i>=0; i--) { try { Logger log = (Logger) loggers.get (i); log.write (); if (log.closed && log.entries.isEmpty()) { loggers.remove (log); log.closeFiles (); } } catch (Exception x) { System.err.println ("Error in Logger main loop: "+x);
	public void run () {	    while (!isInterrupted ()) {	        int l = loggers.size();	        for (int i=l-1; i>=0; i--) {	            Logger log = (Logger) loggers.get (i);	            log.run ();	            if (log.closed) {	                loggers.remove (log);	                loggerMap.remove (log.getKey ());	                log.closeFiles ();	            }	        }	        try {	            sleep (700);	        } catch (InterruptedException ix) {}		    }	}