Remko Popma created LOG4J2-2128:
-----------------------------------

             Summary: doc improvements for CronTriggeringPolicy
                 Key: LOG4J2-2128
                 URL: https://issues.apache.org/jira/browse/LOG4J2-2128
             Project: Log4j 2
          Issue Type: Documentation
          Components: Documentation
    Affects Versions: 2.10.0
            Reporter: Remko Popma


Background: [Stackoverflow 
question|https://stackoverflow.com/questions/47470988/migrating-from-log4j-1-2-to-log4j2/47483310?noredirect=1#comment81941928_47483310]
 on migrating from Log4j 1 to 2.

While following Ralph's advice and updating the example I noticed a few things. 
* The Log4j2 manual needs concrete CronTriggeringPolicy concrete examples; cron 
expressions are not intuitive. 
* Also, with TimeBased triggers, the trigger depends solely on the filePattern. 
With cron expressions it is the user's responsibility to sync the filePattern 
with the cron frequency (and keep them in sync during maintenance). This needs 
to be mentioned explicitly in the Log4j2 manual.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to