BufferingAppenderSkeleton Flush Method (Boolean) | Apache log4net™ SDK Documentation

Flush the currently buffered events

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public virtual void Flush(
    	bool flushLossyBuffer
    )

    Public Overridable Sub Flush (
    	flushLossyBuffer As Boolean
    )

    public:
    virtual void Flush(
    	bool flushLossyBuffer
    )

    abstract Flush :
            flushLossyBuffer : bool -> unit
    override Flush :
            flushLossyBuffer : bool -> unit

#### Parameters

flushLossyBuffer
  Type: System
  Boolean
  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

#### Reference

BufferingAppenderSkeleton Class
Flush Overload
log4net.Appender Namespace