Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-3664

Provide public API on CronTriggeringPolicy to get value of configuration property "checkOnStartup"

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.20.0
    • None
    • Core
    • None

    Description

      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.

      Attachments

        Activity

          People

            rgoers Ralph Goers
            JWT007 Jeff Thomas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: