Jeff Thomas created LOG4J2-3664:
-----------------------------------

             Summary: 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


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)

Reply via email to