Re: How to configure log4j2 to rollover with time stamp on startup? (OR: feature request)

2018-05-15 Thread Franz Wong
Is it more suitable to use CronTriggeringPolicy? -Franz On Tue, May 15, 2018 at 4:21 AM, Hachey, Philip < philip.hac...@nrc-cnrc.gc.ca> wrote: > Yes. As a test, I set the configuration to rollover every minute. > Running a test application that takes negligible time to run and then > running

Re: How to configure log4j2 to rollover with time stamp on startup? (OR: feature request)

2018-05-15 Thread Hachey, Philip
Thank you. After experimenting a bit with CronTriggeringPolicy and initially unable to get it to work even in the simplest of configurations, I found the precise condition that was preventing rollover from happening: including createOnDemand="true" in the RollingFile element. After excluding