Example #1
0
  /** Creates a new log and updates the logtable. */
  public int addLog(final EvolutionState state, final String owner) {
    File file = openFile(state, basefilename + owner.substring(owner.lastIndexOf(".")) + ".stat");

    try {
      int log =
          state.output.addLog(
              file,
              Output.V_NO_GENERAL - 1,
              false,
              !state.parameters.getBoolean(new Parameter(P_COMPRESS), null, false),
              state.parameters.getBoolean(new Parameter(P_COMPRESS), null, false));
      logtable.put(owner, new Integer(log));
      return log;
    } catch (IOException i) {
      state.output.fatal(
          "An IOException occurred while trying to create the log " + file + ":\n" + i);
    }
    return -4;
  }