Messages Dropped From Appender
Closed this issue · 1 comments
frankreno commented
When using the appender, I had an issue where messages were being dropped, usually the last one or 2 messages of the process. Suspect it is due to the buffer flushing interval as to correct I added the following to my code to ensure that the buffer is flushed before my process exits.
LogManager.shutdown();
rvmiller89 commented
This is fixed with #29
Version 2.7 adds parameter flushAllBeforeStopping=true
(still need to do LogManager.shutdown();
with log4j).