I have a bursts of log messages at some points, so I had to put BufferingForwardingAppender
for performance reasons. But, aside from this bursts (that happen lets say, once a day), during the rest of day, I get a small amount of log messages.
Problem is that buffer size is set to 50, which is OK for the burst period, but that's way too much for the periods without burst. In this period, it may take more than an hour or two to flush logs, which is unacceptable in this system.
Is there some way to make BufferingForwardingAppender
flush in specific time intervals (eg. every 10 minutes) if not enough messages are in buffer to trigger the usual process?