I want to configure a Forwarding-Appender in log4net, that does the following:
- It buffers up to N messages. When N is reached, its trigger is executed and it forwards its buffer. Not lossy.
- It forwards its buffered messages if a defined timeout is reached. So the trigger is executed also when a timeout is reached.
- It forwards its buffered messages when the hosting program terminates/closed.
So what I need is a composite trigger: based on count, timeout, and program termination.
How can I configure such appender, if at all?