This documentation is archived and is not being maintained.

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 bool AutoFlush { get; set; }

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.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: