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

RollingFileAppender cannot be configured with both OnStartupTriggeringPolicy and createOnDemand="true"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.11.2
    • 2.13.1
    • Appenders
    • None
    • Windows 10 Professional x64

    Description

      When configuring a RollingFileAppender with the createOnDemand="true" property, and adding the OnStartupTriggeringPolicy, the triggering policy is ignored. Instead, all logs are simply appended to the existing log file. This should be modified to allow rolling logs that are only created on-demand.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Skippums Jeff Gullett
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: