if (element.hasDefined(Constants.EXTENDED)) {
extended = element.get(Constants.EXTENDED).asBoolean();
}
final AccessLogValve log;
if (extended) {
log = new ExtendedAccessLogValve();
} else {
log = new AccessLogValve();
}
log.setDirectory(logDirectory);
if (element.hasDefined(Constants.RESOLVE_HOSTS)) log.setResolveHosts(element.get(Constants.RESOLVE_HOSTS).asBoolean());