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 */
public boolean get_AutoFlush ()

/** @property */
public void set_AutoFlush (boolean value)

public function get AutoFlush () : boolean

public function set AutoFlush (value : boolean)

Not applicable.

Property Value

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 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0