You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Sudhanshu Bhagwat (Jira)" <ji...@apache.org> on 2020/12/17 09:48:00 UTC

[jira] [Created] (LOG4J2-2979) Not able to use System Properties as variables in xi:include

Sudhanshu Bhagwat created LOG4J2-2979:
-----------------------------------------

             Summary: 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


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)