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

doc improvements for CronTriggeringPolicy

    XMLWordPrintableJSON

    Details

    • Type: Documentation
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.10.0
    • Fix Version/s: None
    • Component/s: Documentation
    • Labels:
      None

      Description

      Background: Stackoverflow question 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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rpopma Remko Popma
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: