I reckon that is very unlikely to occur. The RollingFileAppender by default flushes immediately the records to disk (immediateFlush) (But, of course, please have a read https://logging.apache.org/log4j/2.x/manual/appenders.html#RollingFileAppender
Cheers On Thu, 7 Sept 2023 at 15:45, Étienne Miret <etienne.mi...@sciforma.com> wrote: > Hi Rui! > > Thank-you for your reply. I’m not sure it will help me though. I know > very well about Log4j RollingFileAppender but I’m worried I’ll be > missing log events whenever it decides to rotate a file. > > I will dig into this idea though, and let you know. > > Regards, > > -- > Étienne >