You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Matt Sicker (Jira)" <ji...@apache.org> on 2022/01/17 21:31:00 UTC
[jira] [Commented] (LOG4J2-1792) Support property substitution when reading Log4j 1.x property config files
[ https://issues.apache.org/jira/browse/LOG4J2-1792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17477431#comment-17477431 ]
Matt Sicker commented on LOG4J2-1792:
-------------------------------------
I think this might be supported now in a different issue or commit.
> Support property substitution when reading Log4j 1.x property config files
> --------------------------------------------------------------------------
>
> Key: LOG4J2-1792
> URL: https://issues.apache.org/jira/browse/LOG4J2-1792
> Project: Log4j 2
> Issue Type: Sub-task
> Components: Configurators
> Affects Versions: 2.7
> Reporter: Mikael Ståldal
> Priority: Major
>
> I think that Log4j1ConfigurationConverter does not handle Log4j 1.x property substitution correctly. Log4j 1.x let you override properties with Java System Properties, but Log4j 2.x only do that when you specify $\{sys:key}. Right?
> So the converter needs to convert from $\{key} to $\{sys:key}, and also have some logic to handle the case of default value when present.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)