ערוך

שתף באמצעות


FileLogTraceListener.AutoFlush Property

Definition

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

public:
 property bool AutoFlush { bool get(); void set(bool value); };
public bool AutoFlush { get; set; }
member this.AutoFlush : bool with get, set
Public Property AutoFlush As Boolean

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.

Remarks

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.

Applies to

See also