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
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
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 it again a
few minutes later produces no rollover. Log messages from both executions get
logged to the same file.
Here are the contents of the
Are you using OnStartupTriggeringPolicy?
http://logging.apache.org/log4j/2.x/manual/appenders.html#RollingFileAppender
On 14 May 2018 at 12:47, Hachey, Philip
wrote:
> Hello. This is a question about how to achieve a particular result with
> log4j2, but I expect