FileLogTraceListener.Append Property

Determines whether to append the output to the current file or write it to a new file.

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

public bool Append { get; set; }
/** @property */
public boolean get_Append ()

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

public function get Append () : boolean

public function set Append (value : boolean)

Not applicable.

Property Value

Boolean, with True indicating that the output is appended to the current file, and False indicating that output is written to a new file. The default setting for this property is True.

When the Append property is False, the output is written to a new file. When the property is True, the output is appended to the current file, unless:

  • The output file is locked by another process. In this situation, a new log file is created with a version number that is incorporated into the FullLogFileName name.

  • The current file size is greater than what the MaxFileSize property allows. In this situation, additional messages are discarded and, depending on the DiskSpaceExhaustedBehavior property, an exception is thrown.

  • The existing file name is out of date according to the log-creation schedule specified by the LogFileCreationSchedule property. In this situation, a new log file is created and the date stamp is incorporated into the FullLogFileName name.

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

Community Additions

ADD
Show: