roytmana commented on issue #3593:
URL: 
https://github.com/apache/logging-log4j2/issues/3593#issuecomment-2802346844

   @vy 
   from my perspective it would probably be sufficient to do it inside of 
append() method checking on elapsed time since previous sync 
   The disadvantage of course is that if a log does not get much traffic it 
will not be synched for some time and dates not flushed. Thread based sync 
would be much nicer as it would work as a heartbeat regardless of particular 
appender activity. You would need to have a list of all appenders configured 
for this heartbeat and do it for all of them though. In both cases you may need 
to synchronize normal appender write ops and call to sync - I do not know if 
calling them concurrently may pose any issues
   


-- 
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: notifications-unsubscr...@logging.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to