if (!directory.mkdirs()){
throw UndertowLogger.ROOT_LOGGER.couldNotCreateLogDirectory(directory);
}
}
try {
logReceiver = new DefaultAccessLogReceiver(worker.getValue(), directory, filePrefix, fileSuffix);
} catch (IllegalStateException e) {
throw new StartException(e);
}
}