tcmot commented on issue #2025:
URL: 
https://github.com/apache/logging-log4j2/issues/2025#issuecomment-1865683467

   Hi, 
   ```
   RandomAccessFile 
   
   FileChannel channel = randomAccessFile.getChannel();
   randomAccessFile.write();
   channel.force(true);
   ```
   Use the force method,the file be updated in real time. But affects 
performance.
   Log4j2,not use the force method.
   
   Rewrite RollingRandomAccessFileManager and RandomAccessFileManager flush 
method. Add the code above.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to