You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Ralph Goers (Jira)" <ji...@apache.org> on 2022/02/19 08:04:00 UTC

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

     [ https://issues.apache.org/jira/browse/LOG4J2-2979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralph Goers closed LOG4J2-2979.
-------------------------------
    Resolution: Won't Do

Closing since this feature is never going to be implemented.

> 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.20.1#820001)