LogManager Flush Method | Apache log4net™ SDK Documentation

Flushes logging events buffered in all configured appenders in the default repository.

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

C#
VB
C++
F#
Copy

    public static bool Flush(
    	int millisecondsTimeout
    )

    Public Shared Function Flush (
    	millisecondsTimeout As Integer
    ) As Boolean

    public:
    static bool Flush(
    	int millisecondsTimeout
    )

    static member Flush :
            millisecondsTimeout : int -> bool

#### Parameters

millisecondsTimeout
  Type: System
  Int32
  The maximum time in milliseconds to wait for logging events from asycnhronous appenders to be flushed.

#### Return Value

Type: Boolean
True if all logging events were flushed successfully, else false.
See Also

#### Reference

LogManager Class
log4net Namespace