*/
public boolean parseUnrecognizedElement(final Element element,
final Properties props) throws Exception {
final String nodeName = element.getNodeName();
if ("rollingPolicy".equals(nodeName)) {
OptionHandler rollingPolicy =
org.apache.log4j.extras.DOMConfigurator.parseElement(
element, props, RollingPolicy.class);
if (rollingPolicy != null) {
rollingPolicy.activateOptions();
this.setRollingPolicy((RollingPolicy) rollingPolicy);
}
return true;
}
if ("triggeringPolicy".equals(nodeName)) {
OptionHandler triggerPolicy =
org.apache.log4j.extras.DOMConfigurator.parseElement(
element, props, TriggeringPolicy.class);
if (triggerPolicy != null) {
triggerPolicy.activateOptions();
this.setTriggeringPolicy((TriggeringPolicy) triggerPolicy);
}
return true;
}
return false;