} else {
try {
logger = initLogger("/dev/null");
loggers.put("/dev/null", logger);
} catch (IOException e) {
throw new ValidationException("Failed to setup log4j", query);
}
}
if (loggers.containsKey(outputFile.getAbsolutePath())) {
loggers.remove(outputFile.getAbsolutePath());
}
return;
} else if (loggers.containsKey(outputFile.getAbsolutePath())) {
logger = loggers.get(outputFile.getAbsolutePath());
return;
}
try {
logger = initLogger(outputFile.getAbsolutePath());
loggers.put(outputFile.getAbsolutePath(), logger);
} catch (IOException e) {
throw new ValidationException("Failed to setup log4j", query);
}
}