code: private void write(final Collection<Writer> writers, final Task task) {
  		try {
  			Writer writer = task.writer;
  			writer.write(task.logEntry);
  			if (!writers.contains(writer)) {
  				writers.add(writer);
  			}
  		} catch (Exception ex) {
  			InternalLogger.log(Level.ERROR, ex, "Failed to write log entry '" + task.logEntry.getMessage() + "'");
  		}
  	}
docs: Writes a log entry.
  
  @param writers
  Mutable collection of used writers
  @param task
  Log entry to write