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

2018-05-14 Thread Hachey, Philip
/log4j/2.x/manual/appenders.html#RollingFileAppender On 14 May 2018 at 12:47, Hachey, Philip <philip.hac...@nrc-cnrc.gc.ca><mailto:philip.hac...@nrc-cnrc.gc.ca> wrote: Hello. This is a question about how to achieve a particular result with log4j2, but I expect may instead be a *fea

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

2018-05-14 Thread Hachey, Philip
Hello. This is a question about how to achieve a particular result with log4j2, but I expect may instead be a *feature request*. I have a Java application that runs for a few minutes each hour via a cron job (java -jar...). It runs in its own JVM, *not* in a continuously running environment

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

2018-05-15 Thread Hachey, Philip
ion behind createOnDemand, but it turns out that this attribute is thankfully not a requirement for me. Regards, Philip On 2018-05-15 06:36 AM, Franz Wong wrote: Is it more suitable to use CronTriggeringPolicy? -Franz On Tue, May 15, 2018 at 4:21 AM, Hachey, Philip < philip.hac...@n

Re: Issues with Log4j2 2.5 overwriting log files

2018-05-24 Thread Hachey, Philip
It seems odd to me that you have a date pattern in both the "fileName" attribute and the "filePattern" attribute. I suggest getting rid of the date pattern from the fileName attribute so the first line looks like: Philip On 2018-05-24 08:23 AM, visc...@cines.fr