}
});
}
private LoggerConfig makeLogger(ModelNode node, String name) {
LoggerConfig model = factory.loggerConfig().as();
model.setName(name);
model.setLevel(node.get("level").asString());
List<String> handlers = new ArrayList();
if (node.hasDefined("handlers")) {
List<ModelNode> handlerModels = node.get("handlers").asList();
for (ModelNode handlerNode : handlerModels) {
handlers.add(handlerNode.asString());
}
}
model.setHandlers(handlers);
return model;
}