You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Jeff Gullett (JIRA)" <ji...@apache.org> on 2019/02/27 22:53:00 UTC

[jira] [Created] (LOG4J2-2560) RollingFileAppender cannot be configured with both OnStartupTriggeringPolicy and createOnDemand="true"

Jeff Gullett created LOG4J2-2560:
------------------------------------

             Summary: RollingFileAppender cannot be configured with both OnStartupTriggeringPolicy and createOnDemand="true"
                 Key: LOG4J2-2560
                 URL: https://issues.apache.org/jira/browse/LOG4J2-2560
             Project: Log4j 2
          Issue Type: Improvement
          Components: Appenders
    Affects Versions: 2.11.2
         Environment: Windows 10 Professional x64
            Reporter: Jeff Gullett
             Fix For: 2.12.0


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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)