Details
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
- duplicates
-
LOG4J2-2759 RollingFile does not roll with createOnDemand=true
- Closed