code: static void log(ArrayList<PrintWriter> writers, RecordTypes recordType, 
                    Keys[] keys, String[] values) {
      StringBuffer buf = new StringBuffer(recordType.name()); 
      buf.append(DELIMITER); 
      for(int i =0; i< keys.length; i++){
        buf.append(keys[i]);
        buf.append("=\"");
        values[i] = escapeString(values[i]);
        buf.append(values[i]);
        buf.append("\"");
        buf.append(DELIMITER); 
      }
      buf.append(LINE_DELIMITER_CHAR);
      
      for (PrintWriter out : writers) {
        LogTask task = new LogTask(out, buf.toString());
        fileManager.addWriteTask(task);
      }
    }
docs: Log a number of keys and values with record. the array length of keys and values
  should be same.
  @param recordType type of log event
  @param keys type of log event
  @param values type of log event