[
https://issues.apache.org/jira/browse/LOG4J2-1686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16870461#comment-16870461
]
Ralph Goers commented on LOG4J2-1686:
-------------------------------------
I should point out that even without the PropertiesSelector it is still
possible to implement the example I showed above:
{code:java}
<Properties>
<Property name="loggerALevel_dev">DEBUG</Property>
<Property name="loggerBLevel_dev">DEBUG</Property>
<Property name="loggerALevel_prod">INFO</Property>
<property name="loggerBLevel_prod">WARN</Property>
</Properties>
<Loggers>
<Logger name="a" level="${loggerALevel_${sys:env}}">
</Logger>
</Loggers>{code}
> Add support for properties selectors
> ------------------------------------
>
> Key: LOG4J2-1686
> URL: https://issues.apache.org/jira/browse/LOG4J2-1686
> Project: Log4j 2
> Issue Type: New Feature
> Components: Configurators
> Affects Versions: 2.7
> Reporter: Raman Gupta
> Assignee: Ralph Goers
> Priority: Major
>
> It would be great to support conditional configuration like logback:
> http://logback.qos.ch/manual/configuration.html#conditional
> This allows for more advanced configuration than is currently possible with
> property substitution.
> Example use case: to implement
> https://issues.apache.org/jira/browse/LOG4J2-1685 without log4j library
> support.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)