Node oClassNode = ParserHelper.getAttribute(pNode, Constants.ATTR_LOGGER, true);
if (pNode.getChildNodes().getLength() > 0) {
throw new ConfigurationException(String.format(Messages.ELEMENT_NOELEMENTS, Constants.ELEMENT_REGISTER));
}
try {
IRewriteLogger oLogger = pConfig.getBeanFactory().newInstance(IRewriteLogger.class, oClassNode.getNodeValue());
pConfig.setLogger(oLogger);
} catch (Exception e) {
throw new ConfigurationException("Error creating logger \"" + oClassNode.getNodeValue() + "\".", e);
}
}