NLog Logging Library

LogManager.Flush Method (Int32)

[This is preliminary documentation and subject to change.]

Flush any pending log messages (in case of asynchronous targets).

[Visual Basic]
Overloads Public Shared Sub Flush( _
   ByVal timeoutMilliseconds As Integer _
)
[C#]
public static void Flush(
   int timeoutMilliseconds
);

Parameters

timeoutMilliseconds
Maximum time to allow for the flush. Any messages after that time will be discarded.

See Also

LogManager Class | NLog Namespace | LogManager.Flush Overload List