I have log message packages at some points, so I had to post BufferingForwardingAppenderfor performance reasons. But besides these bursts (this happens, say, once a day), during the rest of the day I get a small number of log messages. The problem is that the buffer size is set to 50, which corresponds to the batch update period, but is too strong for periods without a burst. During this period, it may take more than an hour or two to reset the logs, which is not acceptable on this system.
Is there a way to BufferingForwardingAppenderflush at certain intervals (for example, every 10 minutes) if there are not enough messages in the buffer to start a normal process?
source
share