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 2021/04/06 16:24:00 UTC
[jira] [Updated] (LOG4J2-3064) Add support for "conditional"
plugins
[ https://issues.apache.org/jira/browse/LOG4J2-3064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ralph Goers updated LOG4J2-3064:
--------------------------------
Description:
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.
It might be useful to also allow the conditional to include the configuration it wraps from another location instead of requiring it to be in the current file.
was:
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.
> 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
> Priority: Major
>
> 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.
> It might be useful to also allow the conditional to include the configuration it wraps from another location instead of requiring it to be in the current file.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)