Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

BufferingAppenderSkeleton.Flush�Method�(Boolean)

Flush the currently buffered events

[Visual�Basic]
Overridable�Overloads�Public�Sub�Flush( _
���ByVal flushLossyBuffer�As�Boolean�_
)
[C#]
public�virtual�void�Flush(
���boolflushLossyBuffer
);

Parameters

flushLossyBuffer
set to true to flush the buffer of lossy events

Remarks

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

BufferingAppenderSkeleton Class | log4net.Appender Namespace | BufferingAppenderSkeleton.Flush Overload List