BufferingAppenderSkeletonFlush Method (Boolean)Apache log4net™ SDK Documentation
Flush the currently buffered events

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 4.0

public virtual void Flush(
	bool flushLossyBuffer


Type: SystemBoolean
set to true to flush the buffer of lossy events

Flushes events that have been buffered. If flushLossyBuffer is false then events will only be flushed if this buffer is non-lossy mode.

If the appender is buffering in Lossy mode then the contents of the buffer will only be flushed if flushLossyBuffer is true. In this case the contents of the buffer will be tested against the LossyEvaluator and if triggering will be output. All other buffered events will be discarded.

If flushLossyBuffer is true then the buffer will always be emptied by calling this method.

See Also