[
https://issues.apache.org/jira/browse/LOG4J2-3664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jeff Thomas closed LOG4J2-3664.
-------------------------------
Resolution: Won't Fix
Not duplicated in GitHub - in the meantime I personally have found a different
approach.
Closing as cleanup of old issues created by me in old issue tracker. :)
> Provide public API on CronTriggeringPolicy to get value of configuration
> property "checkOnStartup"
> --------------------------------------------------------------------------------------------------
>
> Key: LOG4J2-3664
> URL: https://issues.apache.org/jira/browse/LOG4J2-3664
> Project: Log4j 2
> Issue Type: Wish
> Components: Core
> Affects Versions: 2.20.0
> Reporter: Jeff Thomas
> Assignee: Ralph Goers
> Priority: Major
>
> I have a requirement for our application to be able to get the configuration
> for defined appenders so that it can be modified and written to a new log4j2
> XML configuration file at runtime.
> The log4j2 CronTriggeringPolicy has a configuration attribute
> "evaluateOnStartup" which is stored as 'checkOnStartup' in the
> CronTriggeringPolicy.java class. There is currently no public API to get the
> value of this boolean flag at runtime.
> My "wish" :) would be to add a simple getter API to query this configuration
> setting.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)