public void setup() throws IOException { LOGGER.setLevel(Level.INFO); fileTxt = new FileHandler(ContextManager.getSuccessloggerFile(), true); simpleTextFormatter = new SimpleTextFormatter(); fileTxt.setFormatter(simpleTextFormatter); LOGGER.addHandler(fileTxt); LOGGER.setUseParentHandlers(false); }
public void log(CalibrationModeData calibrationModeData) { double angleToDestWeight = ContextManager.getCopenhagenABMLogging().getAngleToDestWeight(); LOGGER.info( angleToDestWeight + ";" + calibrationModeData.isOmitDecisionMatrixMultifields() + ";" + calibrationModeData.getNumberOfRepetitions() + ";" + calibrationModeData.getSuccessfullyModeledRoutes() + ";" + calibrationModeData.getRunTime()); }