new CacheLoader<String, LogFileOutput>() {
@Override
public LogFileOutput load(String key) throws Exception {
if(configurationService.isConfigurationSet("logging.file."+key+".name")) {
return new LogFileOutput(key, configurationService);
} else {
throw new MarmottaConfigurationException("logfile configuration "+key+" not found");
}
}
}