Petr Hejkal commented on New Feature LOGBACK-539

In current version exist solution. You may add configuration rule and implement xml property loading by this rule. Rules definition is described in documentation.

<newRule pattern="/configuration/xmlProperty" actionClass="ch.qos.logback.core.joran.action.XmlPropertyAction"/>
<xmlProperty file="/path/to/property_file.xml"/>
package ch.qos.logback.core.joran.action;

import ch.qos.logback.core.joran.spi.InterpretationContext;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class XmlPropertyAction extends PropertyAction {
    void loadAndSetProperties(InterpretationContext ec, InputStream istream, ActionUtil.Scope scope) throws IOException {
        Properties props = new Properties();
        props.loadFromXML(istream);
        istream.close();
        ActionUtil.setProperties(ec, props, scope);
    }
}
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira