You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by "Mikael Ståldal (JIRA)" <ji...@apache.org> on 2017/07/22 16:41:00 UTC
[jira] [Updated] (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:all-tabpanel ]
Mikael Ståldal updated LOG4J2-1792:
-----------------------------------
Description:
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.
was:
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.
> 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
>
> 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
(v6.4.14#64029)