Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FileLogTraceListener::AutoFlush Property

 

Indicates whether or not the writing to the log file stream flushes the buffer.

Namespace:   Microsoft.VisualBasic.Logging
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

public:
property bool AutoFlush {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

Boolean, with True indicating that the stream is flushed after every write; otherwise the log entries are buffered and written more efficiently. The default setting for this property is False.

The False setting for the AutoFlush property provides the best performance for most applications, because it is more efficient to write multiple messages to the log file at one time. You can use the Flush method to flush any messages currently in the log file's output buffer. You can also use the Close method, which implicitly flushes the stream before closing the log file.

.NET Framework
Available since 2.0
Return to top
Show: