protected void initLogOutput(boolean enableOutput,boolean outputToFile,String outputFolder,String workload,String vmAllocationPolicy,String vmSelectionPolicy,String parameter) throws IOException, FileNotFoundException {
  setEnableOutput(enableOutput);
  Log.setDisabled(!isEnableOutput());
  if (isEnableOutput() && outputToFile) {
    File folder=new File(outputFolder);
    if (!folder.exists()) {
      folder.mkdir();
    }
    File folder2=new File(outputFolder + "/log");
    if (!folder2.exists()) {
      folder2.mkdir();
    }
    File file=new File(outputFolder + "/log/" + getExperimentName(workload,vmAllocationPolicy,vmSelectionPolicy,parameter)+ ".txt");
    file.createNewFile();
    Log.setOutput(new FileOutputStream(file));
  }
}

protected void initLogOutput ( boolean enableOutput , boolean outputToFile , String outputFolder , String workload , String vmAllocationPolicy , String vmSelectionPolicy , String parameter ) throws IOException , FileNotFoundException { setEnableOutput ( enableOutput ) ; Log . setDisabled ( ! isEnableOutput ( ) ) ; if ( isEnableOutput ( ) && outputToFile ) { File folder = new File ( outputFolder ) ; if ( ! folder . exists ( ) ) { folder . mkdir ( ) ; } File folder2 = new File ( outputFolder + "/log" ) ; if ( ! folder2 . exists ( ) ) { folder2 . mkdir ( ) ; } File file = new File ( outputFolder + "/log/" + getExperimentName ( workload , vmAllocationPolicy , vmSelectionPolicy , parameter ) + ".txt" ) ; file . createNewFile ( ) ; Log . setOutput ( new FileOutputStream ( file ) ) ; } }
inits the log output .
