/** * Enable or disable the logging of all the stats collected by this <tt>HammerStats</tt>. * * @param overallStats the boolean that enable of disable the logging. */ public void setOverallStatsLogging(boolean overallStats) { this.overallStatsLogging = overallStats; if (overallStats) { File saveDir = new File(this.statsDirectoryPath); if (!saveDir.exists()) { logger.info("Creating stats directory at : " + this.statsDirectoryPath); saveDir.mkdirs(); } } }
/** * Enable or disable the logging of the summary stats computed with all the stats collected by * this <tt>HammerStats</tt>. * * @param summaryStats the boolean that enable of disable the logging. */ public void setSummaryStatsLogging(boolean summaryStats) { this.summaryStatsLogging = summaryStats; if (summaryStats) { File saveDir = new File(this.statsDirectoryPath); if (!saveDir.exists()) { logger.info("Creating stats directory at : " + this.statsDirectoryPath); saveDir.mkdirs(); } } }