This documentation is archived and is not being maintained.

FileLogTraceListener.Append Property

Note: This property is new in the .NET Framework version 2.0.

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)

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 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Show: