Ralph Goers created LOG4J2-3064:
-----------------------------------
Summary: Add support for "conditional" plugins
Key: LOG4J2-3064
URL: https://issues.apache.org/jira/browse/LOG4J2-3064
Project: Log4j 2
Issue Type: New Feature
Components: Configuration, Plugins
Affects Versions: 2.14.1
Reporter: Ralph Goers
Spring has implemented a <SpringProfile> element for Logback which allows a
section of configuration to be included if the specified profile(s) are active.
They have asked that Log4j be able to provide similar functionality. This could
be done by implementing support for "conditional" plugins, the specific
SpringProfile plugin, or both.
My suggestion would be to implement the support for conditional plugins and
then possibly a ScriptConditional in Log4j-core. Then I would add the
SpringProfile support in log4j-spring-boot.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)