[ https://issues.apache.org/jira/browse/LOG4J2-2979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17292343#comment-17292343 ]
Ralph Goers commented on LOG4J2-2979: ------------------------------------- Using XInclude has kind of gone out of favor. The alternative is to use [Composite Configurations|[http://logging.apache.org/log4j/2.x/manual/configuration.html#CompositeConfiguration].] > Not able to use System Properties as variables in xi:include > ------------------------------------------------------------ > > Key: LOG4J2-2979 > URL: https://issues.apache.org/jira/browse/LOG4J2-2979 > Project: Log4j 2 > Issue Type: Question > Reporter: Sudhanshu Bhagwat > Priority: Critical > > In my project I have a main log4j2.xml which consists of appenders and a > <xi:include /> tag to include a file of loggers which is in an entirely > different directory than my project. > If I input the complete path in the <xi:incude href="D:/example" /> then it > absolutely works fine. > But I want to make it dynamic as the path for the file is being set in the > code. If I use <xi:include href="${sys:home}/log4j2-loggers.xml" /> then it > seems to be giving an error *"'href' attribute value is syntactically > invalid"* > Am I doing something wrong? Please let me know how would I be able to use it. > Thanks -- This message was sent by Atlassian Jira (v8.3.4#803005)