This documentation is archived and is not being maintained.

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 Value

Type: System.Boolean
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 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: